Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build hipo and fmt with 4 threads #88

Merged
merged 5 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading