Skip to content

Commit

Permalink
Fix CI build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lazamar committed Jan 9, 2025
1 parent bd2e039 commit f41507a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ambar-hs-utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:

- name: Build - Configure
run: |
cd ambar-hs-utils
cabal configure --enable-tests --enable-benchmarks
cabal build all --dry-run
# The last step generates dist-newstyle/cache/plan.json for the cache key.
Expand All @@ -50,7 +51,9 @@ jobs:
- name: Build - Install dependencies
# If we had an exact cache hit, the dependencies will be up to date.
if: steps.cache.outputs.cache-hit != 'true'
run: cabal build all --only-dependencies
run: |
cd ambar-hs-utils
cabal build all --only-dependencies
# Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail.
- name: Build - Save dependencies to cache
Expand All @@ -62,7 +65,11 @@ jobs:
key: ${{ steps.cache.outputs.cache-primary-key }}

- name: Build
run: cabal build all
run: |
cd ambar-hs-utils
cabal build all
- name: Test
run: cabal test
run: |
cd ambar-hs-utils
cabal test

0 comments on commit f41507a

Please sign in to comment.