File tree Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ${{ matrix.os }}
12
+ strategy :
13
+ matrix :
14
+ # we'll add windows-latest later
15
+ os : [ubuntu-latest, macos-latest]
16
+
17
+ steps :
18
+ - uses :
19
+ - actions/checkout@v2
20
+ - carlosperate/arm-none-eabi-gcc-action@v1
21
+
22
+ - name : Build
23
+ shell : bash
24
+ run : |
25
+ ./build.sh
Original file line number Diff line number Diff line change @@ -13,8 +13,14 @@ set(PICO_SDK_FETCH_FROM_GIT on)
13
13
include (cmake/pico_sdk_import.cmake )
14
14
15
15
16
- # copy it over from cmake/credentials.cmake.example
17
- include (cmake/credentials.cmake )
16
+ if (EXISTS cmake/credentials.cmake )
17
+ # copy it over from cmake/credentials.cmake.example
18
+ include (cmake/credentials.cmake )
19
+ else ()
20
+ message (WARNING "Credentials file not found, using default values!" )
21
+ set (WIFI_SSID "SSID" CACHE INTERNAL "WiFi SSID for examples" )
22
+ set (WIFI_PASSWORD "password" CACHE INTERNAL "WiFi password for examples" )
23
+ endif ()
18
24
19
25
project (pico_w_webserver C CXX ASM )
20
26
set (CMAKE_EXPORT_COMPILE_COMMANDS TRUE )
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
if which ninja > /dev/null; then
4
- cmake -B build -G Ninja $1
4
+ cmake -B build -G Ninja $1 && \
5
5
ninja -C build $1
6
6
else
7
- cmake -B build $1
8
- make -j $( getconf _NPROCESSORS_ONLN) -C build $1
7
+ cmake -B build $1 && \
8
+ make -j $( getconf _NPROCESSORS_ONLN) -C build $1 && \
9
9
echo " done. P.S.: Consider installing ninja - it's faster"
10
10
fi
11
+ exit $?
You can’t perform that action at this time.
0 commit comments