Skip to content

Commit

Permalink
ci: build hipo and fmt with 4 threads (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Jan 25, 2024
1 parent c67fc66 commit c240630
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
description: 'GitHub runner'
required: true
type: string
# num_threads:
# description: 'Number of threads or CPUs'
# required: false
# type: string
# default: 2

defaults:
run:
Expand Down Expand Up @@ -34,7 +39,7 @@ jobs:
- name: build
run: |
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=hipo
cmake --build build -j2
cmake --build build -j4 #${{ inputs.num_threads }}
cmake --install build
tar czvf hipo{.tar.gz,}
- run: brew install tree
Expand All @@ -60,7 +65,7 @@ jobs:
if: ${{ inputs.runner != 'macos-latest' }}
run: |
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=fmt -DCMAKE_POSITION_INDEPENDENT_CODE=ON
cmake --build build -j2
cmake --build build -j4 #${{ inputs.num_threads }}
cmake --install build
tar czvf fmt{.tar.gz,}
- run: tree fmt
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ jobs:
uses: ./.github/workflows/ci.yml
with:
runner: ubuntu-latest
# num_threads: 4
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ jobs:
uses: ./.github/workflows/ci.yml
with:
runner: macos-latest
# num_threads: 3

0 comments on commit c240630

Please sign in to comment.