-
Notifications
You must be signed in to change notification settings - Fork 18
38 lines (31 loc) · 1010 Bytes
/
TestSuite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Submodules
run: git submodule update --init --recursive
- 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 -B ./build ./tests
cmake --build ./build --target=fiu-tests --config Release
- name: Run tests
run: |
./build/fiu-tests -O2 -D2
- name: Run tests with Fiu Ready DefaultFlags
run: |
./build/fiu-tests -O2 -D2 -fiureadyflags -defaultflags