forked from JSBSim-Team/jsbsim
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.05 KB
/
ci.yaml
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
39
40
41
42
43
44
45
46
47
48
name: Continuous integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake cxxtest
- name: Create build directory
run: mkdir -p build
- name: Configure CMake
working-directory: ./build
run: cmake .. -DBUILD_TESTS=ON -DCMAKE_CXX_STANDARD=17
- name: Build
working-directory: ./build
run: make
- name: Run Interpolation Test
working-directory: ./build
run: ./tests/unit_tests/InterpolationTest1
- name: Run Interpolation Test
working-directory: ./build
run: ./tests/unit_tests/VectorHashTest1
- name: Upload test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results
path: build/Testing/Temporary/LastTest.log