File tree 3 files changed +69
-2
lines changed
3 files changed +69
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Build on macOS
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ branches :
6
+ - ' develop'
7
+ - ' master'
8
+ - ' test_workflow'
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : macos-12
13
+ steps :
14
+ - name : Clean workspace
15
+ run : |
16
+ echo "Cleaning up previous run"
17
+ rm -rf "${{ github.workspace }}"
18
+ mkdir -p "${{ github.workspace }}"
19
+ - name : Checkout repo
20
+ uses : actions/checkout@v3
21
+ - name : Checkout submodules
22
+ run : git submodule update --init
23
+ - name : Install dependencies
24
+ run : |
25
+ brew install cmake
26
+ brew tap ArmMbed/homebrew-formulae
27
+ brew install arm-none-eabi-gcc
28
+
29
+ - name : Build Project
30
+ # bash required otherwise this mysteriously (no error) fails at "Generating cyw43_bus_pio_spi.pio.h"
31
+ shell : bash
32
+ run : |
33
+ mkdir build
34
+ cd build
35
+ cmake .. -G "Unix Makefiles" -DPICO_SDK_TESTS_ENABLED=1 -DCMAKE_BUILD_TYPE=Debug -DPICO_BOARD=pico_w
36
+ cmake --build .
37
+
38
+ - name : Build Native
39
+ # bash required otherwise this mysteriously (no error) fails at "Generating cyw43_bus_pio_spi.pio.h"
40
+ shell : bash
41
+ run : |
42
+ mkdir build_native
43
+ cd build_native
44
+ cmake .. -G "Unix Makefiles" -DPICO_SDK_TESTS_ENABLED=1 -DCMAKE_BUILD_TYPE=Debug -DPICO_PLATFORM=host
45
+ cmake --build .
Original file line number Diff line number Diff line change 3
3
workflow_dispatch :
4
4
push :
5
5
branches :
6
- - ' develop'
7
6
- ' master'
7
+ - ' test_workflow'
8
8
9
9
jobs :
10
10
build :
@@ -157,3 +157,13 @@ jobs:
157
157
if : always()
158
158
shell : bash
159
159
run : cd ${{github.workspace}}; mkdir -p build; rm -rf build/*; cd build; cmake ../ -DPICO_SDK_TESTS_ENABLED=1 -DCMAKE_BUILD_TYPE=Release -DPICO_TOOLCHAIN_PATH=/opt/arm/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi -DPICO_BOARD=pico_w; make -j ${{steps.core_count.outputs.output}}
160
+
161
+ - name : Native Debug
162
+ if : always()
163
+ shell : bash
164
+ run : cd ${{github.workspace}}; mkdir -p build; rm -rf build/*; cd build; cmake ../ -DPICO_SDK_TESTS_ENABLED=1 -DCMAKE_BUILD_TYPE=Debug -DPICO_PLATFORM=host; make -j ${{steps.core_count.outputs.output}}
165
+
166
+ - name : Native Release
167
+ if : always()
168
+ shell : bash
169
+ run : cd ${{github.workspace}}; mkdir -p build; rm -rf build/*; cd build; cmake ../ -DPICO_SDK_TESTS_ENABLED=1 -DCMAKE_BUILD_TYPE=Release -DPICO_PLATFORM=host; make -j ${{steps.core_count.outputs.output}}
Original file line number Diff line number Diff line change 1
1
name : Build on Windows
2
- on : workflow_dispatch
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ branches :
6
+ - ' develop'
7
+ - ' master'
8
+ - ' test_workflow'
9
+
3
10
jobs :
4
11
build :
5
12
runs-on : windows-2022
6
13
steps :
14
+ - name : Clean workspace
15
+ shell : bash
16
+ run : |
17
+ echo "Cleaning up previous run"
18
+ rm -rf "${{ github.workspace }}/pico-sdk"
7
19
- name : Checkout repo
8
20
uses : actions/checkout@v3
9
21
- name : Checkout submodules
You can’t perform that action at this time.
0 commit comments