Skip to content

Commit

Permalink
feat: build pico & pico2
Browse files Browse the repository at this point in the history
  • Loading branch information
jalmeroth committed Nov 23, 2024
1 parent 17114f7 commit 854a154
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,23 @@ jobs:
export PICO_SDK_PATH="${PWD}/pico-sdk"
export PICO_TINYUSB_PATH="${PWD}/tinyusb"
mkdir -p deskhopl/src/build
cd deskhopl/src/build
# create pico & pico2 build dirs
mkdir -p deskhopl/src/build-{pico,pico2}
# build pico first
pushd deskhopl/src/build-pico
cmake ..
make
popd
# build pico2 second
pushd deskhopl/src/build-pico2
cmake -DDH_PICO_2=1 ..
make
# rename pico2 artificats
mv board_A.uf2 board_A_pico2.uf2
mv board_B.uf2 board_B_pico2.uf2
- uses: actions/upload-artifact@v4
with:
path: deskhopl/src/build/*.uf2
path: |
deskhopl/src/build-pico/*.uf2
deskhopl/src/build-pico2/*.uf2

0 comments on commit 854a154

Please sign in to comment.