Skip to content

Commit

Permalink
first stab at a workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Mar 5, 2025
1 parent e8f308c commit a023a89
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build mcume

on:
push:
pull_request:
release:
types: [published]
check_suite:
types: [rerequested]


jobs:
docs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
with:
persist-credentials: false

- name: get submodules
run: git submodule update --init --recursive

- name: set up tinyusb
run: (cd MCUME_pico2/pico-sdk/lib/tinyusb && python tools/get_deps.py rp2040

- name: fix pico-pio-usb ref
run: (cd MCUME_pico2/pico-sdk/lib/tinyusbhw/mcu/raspberry_pi/Pico-PIO-USB && git pull https://github.com/tannewt/Pico-PIO-USB/ better-timeouts)

- name: set up cmake
run: cmake -S MCUME_pico2 -B build -DPICO_SDK_PATH=MCUME_pico2/pico-sdk

- name: build
run: make -C build -j$(nproc)

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: uf2 files
path: build/*.uf2

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: elf files
path: build/*.elf

0 comments on commit a023a89

Please sign in to comment.