-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.59 KB
/
build-pull-request.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build Pull Request
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: microsoft
ignore: |
include/argparse
thread-comments: true
format-review: true
tidy-checks: '-*'
- name: Fail fast?!
if: steps.linter.outputs.checks-failed != 0
run: |
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}"
exit 1
build-n-test:
runs-on: [gpu]
container:
image: ghcr.io/bnlnpps/esi-shell:1.1.2-debug
volumes:
- /usr/local/optix:/usr/local/optix
options: -i -t
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
shell: bash
run: |
cmake -S . -B build
cmake --build build
- name: Test
shell: bash
env:
GEOM: fakegeom
OPTICKS_EVENT_MODE: DebugLite
run: |
QCurandState_SPEC=3:0:0 /usr/local/opticks/lib/QCurandStateTest
build/src/simtox
build/src/simg4ox -g geom/raindrop.gdml -m run.mac
ls -la /tmp/GEOM/fakegeom/simg4ox/ALL0/A000
ls -la /tmp/GEOM/fakegeom/simg4ox/ALL0/B000
python tests/compare_ab.py