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 10, 2023
1 parent 6eee377 commit f7b2405
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ 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
- uses: ashutoshvarma/setup-ninja@master

- name: Build
shell: bash
run: |
./build.sh
- name: Build
shell: bash
run: |
./build.sh
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 f7b2405

Please sign in to comment.