-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 988 Bytes
/
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
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: Check out project
uses: actions/checkout@v3
- name: Build
run: |
echo 'SSID = "XXXX-XXXX-XXXX"' > .credentials
echo 'PASSWORD = "zNJAoiLLnzvv8KpPKLyf"' >> .credentials
export PICO_SDK_PATH=$(pwd)/../raspberrypi/pico-sdk && make build-all SDK=$(pwd)/../raspberrypi/pico-sdk CREDENTIALS=$(pwd)/.credentials