-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (59 loc) · 1.82 KB
/
dist.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: dist
on:
push:
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: main
cancel-in-progress: true
defaults:
run:
shell: bash
env:
XPACK_ARM_TOOLCHAIN_VERSION: "13.3.1-1.1"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: pico-synth
fetch-depth: 0
- uses: actions/checkout@v4
with:
repository: raspberrypi/pico-sdk
ref: 1.5.1
submodules: true
path: pico-sdk
- name: Install arm-none-eabi toolchain
run: |
wget \
"https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v${XPACK_ARM_TOOLCHAIN_VERSION}/xpack-arm-none-eabi-gcc-${XPACK_ARM_TOOLCHAIN_VERSION}-linux-x64.tar.gz"{,.sha}
sha256sum \
--check \
"xpack-arm-none-eabi-gcc-${XPACK_ARM_TOOLCHAIN_VERSION}-linux-x64.tar.gz.sha"
tar \
--extract \
--verbose \
--file="xpack-arm-none-eabi-gcc-${XPACK_ARM_TOOLCHAIN_VERSION}-linux-x64.tar.gz"
echo "${{ github.workspace }}/xpack-arm-none-eabi-gcc-${XPACK_ARM_TOOLCHAIN_VERSION}/bin" >> $GITHUB_PATH
echo "PICO_SDK_PATH=${{ github.workspace }}/pico-sdk" >> $GITHUB_ENV
- name: Install dependencies
run: |
sudo apt install -y --no-install-recommends ninja-build
- name: Build
run: |
cmake \
-B ${{ github.workspace }}/build \
-D CMAKE_BUILD_TYPE=Release \
-S ${{ github.workspace }}/pico-synth/firmware \
-G Ninja
cmake \
--build ${{ github.workspace }}/build
- uses: actions/upload-artifact@v4
with:
name: dist
path: build/pico-synth.*