mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Another shot at caching
This commit is contained in:
parent
180e739581
commit
48f3304c69
1 changed files with 15 additions and 12 deletions
27
.github/workflows/prototyping.yml
vendored
27
.github/workflows/prototyping.yml
vendored
|
@ -15,28 +15,31 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
aesonVersion: [2.0.3]
|
||||||
|
scientificVersion: [0.3.7]
|
||||||
|
vectorVersion: [0.12.3]
|
||||||
|
agdaVersion: [2.6.2]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cabal/store
|
||||||
|
key: ${{ runner.os }}-${{ matrix.aesonVersion }}-${{ matrix.scientificVersion }}-${{ matrix.vectorVersion }}-${{ matrix.agdaVersion }}
|
||||||
- name: install cabal
|
- name: install cabal
|
||||||
run: sudo apt-get install -y cabal-install
|
run: sudo apt-get install -y cabal-install
|
||||||
- name: cabal update
|
- name: cabal update
|
||||||
working-directory: prototyping
|
working-directory: prototyping
|
||||||
run: |
|
run: cabal update
|
||||||
cabal update
|
|
||||||
cabal list --simple-output aeson > aeson.txt
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.cabal/store
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('prototyping/aeson.txt') }}
|
|
||||||
restore-keys: ${{ runner.os }}-
|
|
||||||
- name: cabal install
|
- name: cabal install
|
||||||
working-directory: prototyping
|
working-directory: prototyping
|
||||||
run: |
|
run: |
|
||||||
cabal install --lib scientific --package-env .
|
cabal install --lib scientific-${{ matrix.scientificVersion }} --package-env .
|
||||||
cabal install --lib vector --package-env .
|
cabal install --lib vector-${{ matrix.vectorVersion }} --package-env .
|
||||||
cabal install --lib aeson --package-env .
|
cabal install --lib aeson-${{ matrix.aesonVersion }} --package-env .
|
||||||
cabal install Agda
|
cabal install Agda-${{ matrix.agdaVersion }}
|
||||||
- name: check examples
|
- name: check examples
|
||||||
working-directory: prototyping
|
working-directory: prototyping
|
||||||
run: ~/.cabal/bin/agda Examples.agda
|
run: ~/.cabal/bin/agda Examples.agda
|
||||||
|
|
Loading…
Add table
Reference in a new issue