Skip to content

Commit

Permalink
feat: build pico & pico2
Browse files Browse the repository at this point in the history
fix paths
  • Loading branch information
jalmeroth committed Nov 23, 2024
1 parent 17114f7 commit adb13c7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create --repo "${{github.repository}}" --generate-notes "${{github.ref_name}}" artifacts/*.uf2
gh release create --repo "${{github.repository}}" --generate-notes "${{github.ref_name}}" artifacts/**/*.uf2

0 comments on commit adb13c7

Please sign in to comment.