-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (64 loc) · 1.79 KB
/
ubuntu20.04-gcc11-x64.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build and Test Ubuntu 20.04 gcc 11 x64
# Trigger the workflow on push or pull request
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build distBVH
container:
image: nmm0/distbvh-ubuntu20.04-gcc11-x64:ci-images
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake --preset ci-gcc11-x64
- name: Build
run: cmake --build --preset ci-gcc11-x64 --parallel $(nproc)
- uses: actions/upload-artifact@v4
with:
name: build-directory
path: /opt/builds/bvh
unit_tests:
runs-on: ubuntu-latest
name: Unit Tests
container:
image: nmm0/distbvh-ubuntu20.04-gcc11-x64:ci-images
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-directory
path: /opt/builds/bvh
- name: Set executable permissions
run: chmod +x /opt/builds/bvh/tests/BVHTests
- name: Run CTest
run: ctest --preset ci-gcc11-x64
integration_tests:
runs-on: ubuntu-latest
name: Integration Tests
container:
image: nmm0/distbvh-ubuntu20.04-gcc11-x64:ci-images
needs: build
env:
TRACE_OUTPUT_DIR: /opt/runs/NimbleSM/trace
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-directory
path: /opt/builds/bvh
- name: Build NimbleSM
run: bash ci/nimble_build_integration.sh
- name: Sphere/plate contact test
run: bash ci/nimble_test_integration.sh sphere_plate_contact
- uses: actions/upload-artifact@v4
with:
name: traces
path: ${{ env.TRACE_OUTPUT_DIR }}