Skip to content

Commit

Permalink
use the correct build command when building spade in CI (#2809)
Browse files Browse the repository at this point in the history
* use the correct build command when building spade in CI

* add step to install openocd

* update the build command in readme and the name of the firmware outputted
  • Loading branch information
JosiasAurel authored Jan 22, 2025
1 parent 9e82690 commit 8b23752
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ jobs:
build-uf2:
runs-on: 'ubuntu-latest' # Run on the latest stable Ubuntu version
steps:
- name: 'Install OpenOCD'
run: |
sudo apt-get install openocd
- name: 'Clone Spade repo'
run: |
cd ~/
git clone https://github.com/hackclub/sprig.git sprig/
- name: 'Build Script'
run: cd ~/sprig/firmware/spade && ../../scripts/gardenshed/build.sh
run: cd ~/sprig/firmware/spade && python3 gardenshed.py build

- name: 'Upload artifact'
uses: 'actions/upload-artifact@v3'
with:
name: 'spade.uf2'
path: '~/sprig/firmware/spade/spade.uf2'
name: 'firmware.uf2'
path: '~/sprig/firmware/spade/firmware.uf2'
if-no-files-found: error
4 changes: 2 additions & 2 deletions firmware/spade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ However, on-device debugging is hard, so the engine can also be compiled to run
#### Building
- Clone the repository
- Change into the spade directory and change code as desired
- Run `../../scripts/gardenshed/build.sh`
- Run `python3 gardenshed.py build`

this will produce the ``./spade.uf2`` file which you can flash to your sprig.
this will produce the ``./firmware.uf2`` file which you can flash to your sprig.

### Manual
Prerequisites:
Expand Down

0 comments on commit 8b23752

Please sign in to comment.