-
-
Notifications
You must be signed in to change notification settings - Fork 24
33 lines (33 loc) · 1.06 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build gbinterceptor firmware
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup arm-none-eabi-gcc
uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Clone pico-sdk dependency (pinned versions of pico-sdk and tinyusb)
run: |
git clone https://github.com/raspberrypi/pico-sdk --recurse-submodules
cd pico-sdk && sudo git checkout tags/2.0.0 && cd ..
cd pico-sdk/lib/tinyusb && sudo git checkout 0.16.0 && cd ../../..
- name: Build firmware
run: |
arm-none-eabi-gcc --version
cd ./firmware
mkdir build && cd build
cmake .. -G Ninja -DPICO_SDK_PATH=../../pico-sdk
ninja
- name: 'Upload artifacts'
uses: actions/upload-artifact@v3
with:
name: firmware
path: |
./firmware/build/gb_interceptor.*
retention-days: 7