diff --git a/.github/workflows/build-pcb.yml b/.github/workflows/build-pcb.yml new file mode 100644 index 0000000..581d4fc --- /dev/null +++ b/.github/workflows/build-pcb.yml @@ -0,0 +1,41 @@ +name: build-pcb + +on: [pull_request, push] + +jobs: + build-pcb: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + lfs: true + + - name: Checkout LFS objects + run: git lfs checkout + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + poetry --version + + - name: Install dependencies + run: poetry install --no-interaction + + - name: Build PCBs + uses: sethfischer/atopile-action@main + with: + path: src/osr_elec/ + + - name: Upload PCB artifacts + uses: actions/upload-artifact@v4 + with: + name: pcb-build + path: src/osr_elec/build/ + if-no-files-found: error diff --git a/README.rst b/README.rst index 4a09d20..10f9024 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ sethfischer/rover ================= -|build-status| |lint-status| |test-status| |docs-status| |linkcheck-status| +|build-status| |lint-status| |test-status| |docs-status| |linkcheck-status| |build-pcb-status| Quarter-scale Mars rover based on the NASA Mars 2020 Mission Perseverance Rover. @@ -47,3 +47,6 @@ License .. |linkcheck-status| image:: https://github.com/sethfischer/rover/actions/workflows/linkcheck.yml/badge.svg :target: https://github.com/sethfischer/rover/actions/workflows/linkcheck.yml :alt: Link Check Status +.. |build-pcb-status| image:: https://github.com/sethfischer/rover/actions/workflows/build-pcb.yml/badge.svg + :target: https://github.com/sethfischer/rover/actions/workflows/build-pcb.yml + :alt: PCB build status