@@ -33,43 +33,28 @@ jobs:
33
33
working-directory : ${{github.workspace}}/pico-sdk
34
34
run : git submodule update --init
35
35
36
- - name : Create Build Environment (Pico)
36
+ - name : Create Build Environment
37
37
# Some projects don't allow in-source building, so create a separate build directory
38
38
# We'll use this as our working directory for all subsequent commands
39
39
working-directory : ${{github.workspace}}/pico-examples
40
- run : cmake -E make_directory ${{github.workspace}}/pico-examples/build.pico
40
+ run : cmake -E make_directory ${{github.workspace}}/pico-examples/build
41
41
42
- - name : Configure CMake (Pico)
42
+ - name : Configure CMake
43
43
# Use a bash shell so we can use the same syntax for environment variable
44
44
# access regardless of the host operating system
45
45
shell : bash
46
- working-directory : ${{github.workspace}}/pico-examples/build.pico
46
+ working-directory : ${{github.workspace}}/pico-examples/build
47
47
# Note the current convention is to use the -S and -B options here to specify source
48
48
# and build directories, but this is only available with CMake 3.13 and higher.
49
49
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
50
- run : PICO_SDK_PATH=../../pico-sdk cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPICO_BOARD=pico
50
+ run : PICO_SDK_PATH=../../pico-sdk cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
51
51
52
52
- name : Get core count
53
53
id : core_count
54
54
run : cat /proc/cpuinfo | grep processor | wc -l
55
55
56
- - name : Build (Pico)
57
- working-directory : ${{github.workspace}}/pico-examples/build.pico
58
- shell : bash
59
- # Execute the build. You can specify a specific target with "--target <NAME>"
60
- run : cmake --build . --config $BUILD_TYPE --parallel $(nproc)
61
-
62
- - name : Create Build Environment (Pico 2 W)
63
- working-directory : ${{github.workspace}}/pico-examples
64
- run : cmake -E make_directory ${{github.workspace}}/pico-examples/build.pico2_w
65
-
66
- - name : Configure CMake (Pico 2 W)
67
- shell : bash
68
- working-directory : ${{github.workspace}}/pico-examples/build.pico2_w
69
- run : PICO_SDK_PATH=../../pico-sdk cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPICO_BOARD=pico2_w
70
-
71
- - name : Build (Pico 2 W)
72
- working-directory : ${{github.workspace}}/pico-examples/build.pico2_w
56
+ - name : Build
57
+ working-directory : ${{github.workspace}}/pico-examples/build
73
58
shell : bash
74
59
# Execute the build. You can specify a specific target with "--target <NAME>"
75
60
run : cmake --build . --config $BUILD_TYPE --parallel $(nproc)
0 commit comments