1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-28 01:23:11 +03:00

Use the same stack version in all CI jobs and remove stack setup step (#1651)

* Remove `stack setup` step as this was only required for macOS

* Use haskell setup action so same version of stack is used in tests and build
This commit is contained in:
Paul Cadman 2022-11-30 14:58:01 +00:00 committed by GitHub
parent ebfe412d6f
commit 3fbf9a3020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,10 +174,12 @@ jobs:
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-work-${{ hashFiles('main/stack.yaml') }}-${{ hashFiles('main/package.yaml') }}-${{ hashFiles('main/**/*.hs') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-stack-work-
- name: Setup Stack GHC
run : |
cd main
stack setup
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v3
@ -257,10 +259,12 @@ jobs:
with:
mdbook-version: 'latest'
- name: Setup Stack GHC
run : |
cd main
stack setup
- uses: haskell/actions/setup@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
- name: Cache LLVM and Clang
id: cache-llvm