mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
cache cmake build
This commit is contained in:
parent
41f84eb3a0
commit
716c7a60bb
1 changed files with 14 additions and 6 deletions
20
.github/workflows/prototyping.yml
vendored
20
.github/workflows/prototyping.yml
vendored
|
@ -34,6 +34,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: ~/.cabal/store
|
path: ~/.cabal/store
|
||||||
key: prototyping-${{ runner.os }}-${{ matrix.agda }}
|
key: prototyping-${{ runner.os }}-${{ matrix.agda }}
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ./build
|
||||||
|
key: prototyping-${{ runner.os }}-${{ hashFiles("Ast/**", "Analysis/**", "CLI/Ast.cpp", "CLI/FileUtils.*")}}
|
||||||
- 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
|
||||||
|
@ -46,24 +50,28 @@ jobs:
|
||||||
cabal install --lib scientific --package-env .
|
cabal install --lib scientific --package-env .
|
||||||
cabal install --lib vector --package-env .
|
cabal install --lib vector --package-env .
|
||||||
cabal install --lib aeson --package-env .
|
cabal install --lib aeson --package-env .
|
||||||
- name: check examples
|
- name: check targets
|
||||||
working-directory: prototyping
|
working-directory: prototyping
|
||||||
run: ~/.cabal/bin/agda Examples.agda
|
run: |
|
||||||
|
~/.cabal/bin/agda Examples.agda
|
||||||
|
~/.cabal/bin/agda Properties.agda
|
||||||
- name: build executables
|
- name: build executables
|
||||||
working-directory: prototyping
|
working-directory: prototyping
|
||||||
run: |
|
run: |
|
||||||
~/.cabal/bin/agda --compile PrettyPrinter.agda
|
~/.cabal/bin/agda --compile PrettyPrinter.agda
|
||||||
~/.cabal/bin/agda --compile Interpreter.agda
|
~/.cabal/bin/agda --compile Interpreter.agda
|
||||||
~/.cabal/bin/agda --compile Properties.agda
|
|
||||||
- name: cmake configure
|
- name: cmake configure
|
||||||
run: cmake .
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cmake build
|
||||||
- name: cmake build luau-ast
|
- name: cmake build luau-ast
|
||||||
run: cmake --build . --target Luau.Ast.CLI
|
run: |
|
||||||
|
cmake --build build/ --target Luau.Ast.CLI
|
||||||
- name: run tests
|
- name: run tests
|
||||||
working-directory: prototyping
|
working-directory: prototyping
|
||||||
run: |
|
run: |
|
||||||
mkdir test-failures
|
mkdir test-failures
|
||||||
python tests -l ../luau-ast --write-diff-failures --diff-failure-location test-failures/
|
python tests -l ../build/luau-ast --write-diff-failures --diff-failure-location test-failures/
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue