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)
1313include (cmake/pico_sdk_import.cmake)
1414
1515
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 ()
1824
1925project (pico_w_webserver C CXX ASM)
2026set (CMAKE_EXPORT_COMPILE_COMMANDS TRUE )
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33if which ninja > /dev/null; then
4- cmake -B build -G Ninja $1
4+ cmake -B build -G Ninja $1 && \
55 ninja -C build $1
66else
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 && \
99 echo " done. P.S.: Consider installing ninja - it's faster"
1010fi
11+ exit $?
You can’t perform that action at this time.
0 commit comments