From 40659fcb6e54d2dd32fd646e3a2ccec33ef5c123 Mon Sep 17 00:00:00 2001 From: Lily Brown Date: Thu, 17 Feb 2022 16:43:27 -0800 Subject: [PATCH] skip cmake configure if cache is hit --- .github/workflows/prototyping.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/prototyping.yml b/.github/workflows/prototyping.yml index 101aea60..30b43675 100644 --- a/.github/workflows/prototyping.yml +++ b/.github/workflows/prototyping.yml @@ -35,6 +35,7 @@ jobs: path: ~/.cabal/store key: prototyping-${{ runner.os }}-${{ matrix.agda }} - uses: actions/cache@v2 + id: luau-ast-cache with: path: ./build 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 Interpreter.agda - name: cmake configure + if: steps.luau-ast-cache.cache-hit != 'true' run: | mkdir build cd build cmake build ../ - name: cmake build luau-ast + if: steps.luau-ast-cache.cache-hit != 'true' run: | cmake --build ./build --target Luau.Ast.CLI - name: run tests