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:
parent
ebfe412d6f
commit
3fbf9a3020
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user