Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Oct 17, 2021
1 parent 4f3816c commit dd6640f
Showing 1 changed file with 4 additions and 31 deletions.
35 changes: 4 additions & 31 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,10 @@ jobs:
- name: Configure project
run: cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+

- name: Restore cabal cache
uses: haskell-works/cabal-cache-action@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BINARY_CACHE_REGION: ${{ secrets.BINARY_CACHE_REGION }}
BINARY_CACHE_THREADS: ${{ secrets.BINARY_CACHE_THREADS }}
BINARY_CACHE_URI: ${{ secrets.BINARY_CACHE_URI }}
- uses: action-works/cabal-cache@v1
name: Cache cabal store
with:
args: |
sync-from-archive \
--threads "${BINARY_CACHE_THREADS-4}" \
--archive-uri "${BINARY_CACHE_URI-'http://hw-binary-cache-us-west-2-a.s3-website-us-west-2.amazonaws.com/archive'}" \
--region "${BINARY_CACHE_REGION-'us-west-2'}" \
--store-path "${{ steps.setup-haskell.outputs.cabal-store }}"
key-prefix: CwBTpnRd

- name: Build
# Try building it twice in case of flakey builds on Windows
Expand All @@ -71,23 +60,6 @@ jobs:
run: |
cabal test all --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
- name: Save cabal cache
uses: haskell-works/cabal-cache-action@v1
if: ${{ always() }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BINARY_CACHE_REGION: ${{ secrets.BINARY_CACHE_REGION }}
BINARY_CACHE_THREADS: ${{ secrets.BINARY_CACHE_THREADS }}
BINARY_CACHE_URI: ${{ secrets.BINARY_CACHE_URI }}
with:
args: |
sync-to-archive \
--threads "${BINARY_CACHE_THREADS-4}" \
--archive-uri "${BINARY_CACHE_URI-'http://hw-binary-cache-us-west-2-a.s3-website-us-west-2.amazonaws.com/archive'}" \
--region "${BINARY_CACHE_REGION-'us-west-2'}" \
--store-path "${{ steps.setup-haskell.outputs.cabal-store }}"
check:
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -192,3 +164,4 @@ jobs:
body: Undocumented
draft: true
prerelease: false

0 comments on commit dd6640f

Please sign in to comment.