Skip to content

Commit

Permalink
Fix Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
krzmaz committed Oct 9, 2023
1 parent 6eee377 commit 40ef159
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: carlosperate/arm-none-eabi-gcc-action@v1
- uses: actions/checkout@v2
- uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: "12.2.Rel1"

- name: Build
shell: bash
run: |
./build.sh
- name: Build
shell: bash
run: |
./build.sh pico_w_webserver
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

if which ninja >/dev/null; then
cmake -B build -G Ninja $1 && \
cmake -B build -G Ninja && \
ninja -C build $1
else
cmake -B build $1 && \
cmake -B build && \
make -j $(getconf _NPROCESSORS_ONLN) -C build $1 && \
echo "done. P.S.: Consider installing ninja - it's faster"
fi
Expand Down

0 comments on commit 40ef159

Please sign in to comment.