Skip to content

Commit

Permalink
GitHub Actions: use hardcoded number of threads when building
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Feb 5, 2024
1 parent e57ff11 commit ecfc127
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- { name: Fedora, os: ubuntu-latest, arch: x86_64, cc: gcc, container: 'fedora:latest', }
#- { name: Haiku, os: ubuntu-latest, arch: x86_64, cc: x86_64-unknown-haiku-gcc, cxx: x86_64-unknown-haiku-g++, container: 'haiku/cross-compiler:x86_64-r1beta4', }
- { name: macOS, os: macos-13, arch: x86_64, cc: clang, flags: "-DCMAKE_OSX_DEPLOYMENT_TARGET=13.6" }
- { name: macOS, os: macos-14, arch: arm64, cc: clang, flags: "-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0" }
- { name: macOS, os: macos-14, arch: arm64, cc: clang, flags: "-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0", threads: 3 }

configuration: [Debug, Release]

Expand Down Expand Up @@ -150,15 +150,15 @@ jobs:

- name: Run CMake Build
id: cmake-build
run: cmake --build build --config ${{ matrix.configuration }} --parallel $(nproc || sysctl -n hw.ncpu || echo 4)
run: cmake --build build --config ${{ matrix.configuration }} --parallel ${{ matrix.platform.threads || 4 }}

- name: Make package
if: ${{ steps.cmake-build.outcome == 'success' }}
id: make-package
#continue-on-error: true
working-directory: build
run: |
cpack -B artifacts -C ${{ matrix.configuration }} -DCPACK_THREADS=$(nproc || sysctl -n hw.ncpu || echo 4)
cpack -B artifacts -C ${{ matrix.configuration }} -DCPACK_THREADS=${{ matrix.platform.threads || 4 }}
file artifacts/openxray*.*
- name: Upload OpenXRay artifact
Expand Down

0 comments on commit ecfc127

Please sign in to comment.