-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.07 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
47
48
49
name: build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install RaspberryPi Pico SDK
id: pico-sdk
run: |
cd ..
mkdir raspberrypi
cd raspberrypi
git clone https://github.com/raspberrypi/pico-sdk.git --branch master
cd pico-sdk
git submodule update --init
- name: Setup toolchain
id: toolchain
run: |
sudo apt update
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install tinygo
id: tinygo
uses: acifani/setup-tinygo@v2
with:
tinygo-version: '0.33.0'
- name: Check out project
uses: actions/checkout@v4
- name: Build
run: |
export PICO_SDK_PATH=$(pwd)/../raspberrypi/pico-sdk && make build-all SDK=$(pwd)/../raspberrypi/pico-sdk CREDENTIALS=$(pwd)/.credentials