Skip to content

Commit

Permalink
test parallel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tjko committed Sep 5, 2024
1 parent 2d1aab2 commit e0ed292
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: [ "main" ]

env:
BUILD_THREADS: 4
BUILD_TYPE: Release
# Pico-SDK version
PICO_SDK_REF: 2.0.0
Expand Down Expand Up @@ -77,7 +78,7 @@ jobs:
run: |
cmake -S picotool-src -B picotool-src/build -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/picotool -DPICOTOOL_FLAT_INSTALL=1
cd picotool-src/build
make install
make -j ${{env.BUILD_THREADS}} install
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -99,7 +100,7 @@ jobs:
echo "BUILD_DATE=$date" >> $GITHUB_OUTPUT
- name: Build
run: cmake --build ${{github.workspace}}/main/build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/main/build --config ${{env.BUILD_TYPE}} -j ${{env.BUILD_THREADS}}

- name: Test
working-directory: ${{github.workspace}}/main/build
Expand Down

0 comments on commit e0ed292

Please sign in to comment.