-
-
Notifications
You must be signed in to change notification settings - Fork 19
46 lines (39 loc) · 1.21 KB
/
build.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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build
on: [push, pull_request]
jobs:
build-binary:
runs-on: ubuntu-latest
steps:
- name: Checkout udpih
uses: actions/checkout@v4
with:
path: udpih
submodules: recursive
- name: Checkout pico-sdk
uses: actions/checkout@v4
with:
repository: raspberrypi/pico-sdk
ref: master
path: pico-sdk
submodules: recursive
- name: Setup pico-sdk
run: |
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
- name: Build arm_kernel code
run: |
cd ${{github.workspace}}/udpih
docker build -t udpihbuilder .
docker run --rm -v ${PWD}:/project udpihbuilder make arm_kernel
- name: Build pico code
run: |
export PICO_SDK_PATH=${{github.workspace}}/pico-sdk
cd ${{github.workspace}}/udpih/pico
make
- uses: actions/upload-artifact@v4
with:
name: udpih
path: |
${{github.workspace}}/udpih/arm_kernel/arm_kernel.bin.h
${{github.workspace}}/udpih/pico/build_rp2040/udpih.uf2
${{github.workspace}}/udpih/pico/build_rp2350/udpih.uf2
if-no-files-found: error