Skip to content

Commit

Permalink
Update TestSuite.yml
Browse files Browse the repository at this point in the history
- Cache built TestSuite to run tests much quicker
  • Loading branch information
SnorlaxAssist committed Mar 28, 2024
1 parent 9151bad commit df24c73
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/TestSuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,19 @@ jobs:
- name: Install Submodules
run: git submodule update --init --recursive

- name: Make tests
- name: Cache TestSuite
id: cache-test-suite
uses: actions/cache@v3
with:
path: ./build/fiu-tests
key: ${{ runner.os }}-build-test-suite-${{ hashFiles('./tests/**/*.cpp') }}-${{ hashFiles('./tests/**/*.h') }}

- if: ${{ steps.cache-test-suite.outputs.cache-hit != 'true' }}
name: Make tests
run: |
cmake -DCMAKE_BUILD_TYPE=Release ./tests
cmake --build . --target=fiu-tests
cmake -DCMAKE_BUILD_TYPE=Release -B ./build ./tests
cmake --build ./build --target=fiu-tests --config Release
- name: Run tests
run: |
./fiu-tests -O2 -D2
./build/fiu-tests -O2 -D2

0 comments on commit df24c73

Please sign in to comment.