Skip to content

Commit

Permalink
Use -j --semaphore in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Jan 16, 2025
1 parent 464a9d7 commit 2737e8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/applications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,11 @@ jobs:
store_path: ${{ steps.setup.outputs.cabal-store }}
aws_access_key_id: "${{ secrets.kadena_cabal_cache_aws_access_key_id }}"
aws_secret_access_key: "${{ secrets.kadena_cabal_cache_aws_secret_access_key }}"
- name: Install build dependencies
run: cabal build chainweb --only-dependencies
- name: Build chainweb library
run: cabal build --ghc-options=-j2 lib:chainweb
- name: Build chainweb
run: cabal build -j --semaphore lib:chainweb
- name: Build chainweb applications
run: |
cabal build -j2 --ghc-options=-j2 \
cabal build -j --semaphore \
chainweb:bench:bench \
exe:b64 \
exe:calculate-release \
Expand All @@ -379,7 +377,7 @@ jobs:
test:remote-tests \
test:chainweb-storage-tests
- name: Build chainweb-node application
run: cabal build -j2 --ghc-options=-j2 chainweb-node:exe:chainweb-node
run: cabal build -j --semaphore chainweb-node:exe:chainweb-node

# Checks
- name: Check that working directory tree is clean
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ jobs:
store_path: ${{ steps.setup.outputs.cabal-store }}
aws_access_key_id: "${{ secrets.kadena_cabal_cache_aws_access_key_id }}"
aws_secret_access_key: "${{ secrets.kadena_cabal_cache_aws_secret_access_key }}"
- name: Install build dependencies
run: cabal build chainweb --only-dependencies
- name: Build chainweb library
run: cabal build lib:chainweb
- name: Build chainweb
run: cabal build -j --semaphore chainweb
- name: Build chainweb applications
run: |
cabal build -j \
cabal build -j --semaphore \
chainweb:bench:bench \
exe:b64 \
exe:calculate-release \
Expand All @@ -135,7 +133,7 @@ jobs:
test:multi-node-network-tests \
test:remote-tests
- name: Build chainweb-node application
run: cabal build -j chainweb-node:exe:chainweb-node
run: cabal build -j --semaphore chainweb-node:exe:chainweb-node
- uses: actions/cache/save@v4
name: Save dist-newstyle cache
if: steps.cabal-dist-cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -171,4 +169,3 @@ jobs:
exit 1
fi
mv cabal.project.freeze.backup cabal.project.freeze

0 comments on commit 2737e8c

Please sign in to comment.