mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
skip cmake configure if cache is hit
This commit is contained in:
parent
cc9f51cdb9
commit
40659fcb6e
1 changed files with 3 additions and 0 deletions
3
.github/workflows/prototyping.yml
vendored
3
.github/workflows/prototyping.yml
vendored
|
@ -35,6 +35,7 @@ jobs:
|
||||||
path: ~/.cabal/store
|
path: ~/.cabal/store
|
||||||
key: prototyping-${{ runner.os }}-${{ matrix.agda }}
|
key: prototyping-${{ runner.os }}-${{ matrix.agda }}
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
|
id: luau-ast-cache
|
||||||
with:
|
with:
|
||||||
path: ./build
|
path: ./build
|
||||||
key: prototyping-${{ runner.os }}-${{ hashFiles('Ast/**', 'Analysis/**', 'CLI/Ast.cpp', 'CLI/FileUtils.*')}}
|
key: prototyping-${{ runner.os }}-${{ hashFiles('Ast/**', 'Analysis/**', 'CLI/Ast.cpp', 'CLI/FileUtils.*')}}
|
||||||
|
@ -59,11 +60,13 @@ jobs:
|
||||||
~/.cabal/bin/agda --compile PrettyPrinter.agda
|
~/.cabal/bin/agda --compile PrettyPrinter.agda
|
||||||
~/.cabal/bin/agda --compile Interpreter.agda
|
~/.cabal/bin/agda --compile Interpreter.agda
|
||||||
- name: cmake configure
|
- name: cmake configure
|
||||||
|
if: steps.luau-ast-cache.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake build ../
|
cmake build ../
|
||||||
- name: cmake build luau-ast
|
- name: cmake build luau-ast
|
||||||
|
if: steps.luau-ast-cache.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cmake --build ./build --target Luau.Ast.CLI
|
cmake --build ./build --target Luau.Ast.CLI
|
||||||
- name: run tests
|
- name: run tests
|
||||||
|
|
Loading…
Add table
Reference in a new issue