-
Notifications
You must be signed in to change notification settings - Fork 55
96 lines (91 loc) · 2.6 KB
/
build-lcg-and-test.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Build LCG and Test
on: [push, pull_request]
env:
LCG: "LCG_101"
sys: "x86_64-ubuntu2004-gcc9-opt"
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
with:
cvmfs_repositories: 'sft.cern.ch,geant4.cern.ch'
- uses: aidasoft/run-lcg-view@v1
with:
release-platform: ${{ env.LCG }}/${{ env.sys }}
run: |
cmake -Bbuild -S. -DCMAKE_INSTALL_PREFIX=install/
cmake --build build
cmake --build build --target install
- run: |
tar -cvf install.tar install/
- uses: actions/upload-artifact@v2
with:
name: ${{ env.LCG }}-${{ env.sys }}
path: install.tar
retention-days: 1
test_geometries:
runs-on: ubuntu-20.04
needs: build
strategy:
fail-fast: false
matrix:
suite: ["load", "validate", "overlap"]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
with:
cvmfs_repositories: 'sft.cern.ch,geant4.cern.ch'
- uses: actions/download-artifact@v2
with:
name: ${{ env.LCG }}-${{ env.sys }}
- run: |
tar -xvf install.tar
- uses: aidasoft/run-lcg-view@v1
with:
release-platform: ${{ env.LCG }}/${{ env.sys }}
run: |
mkdir -p logfiles rootfiles
source install/bin/remoll.sh
scripts/tests/test_geometries.sh ${{ matrix.suite }}
ls -al logfiles rootfiles
- uses: actions/upload-artifact@v2
with:
name: test_geometries_${{ matrix.suite }}_logfiles
path: |
logfiles/
retention-days: 3
test_macros:
runs-on: ubuntu-20.04
needs: build
strategy:
fail-fast: false
matrix:
suite: ["unit", "commit", "release"]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
with:
cvmfs_repositories: 'sft.cern.ch,geant4.cern.ch'
- uses: actions/download-artifact@v2
with:
name: ${{ env.LCG }}-${{ env.sys }}
- run: |
tar -xvf install.tar
- uses: aidasoft/run-lcg-view@v1
with:
release-platform: ${{ env.LCG }}/${{ env.sys }}
run: |
mkdir -p logfiles rootfiles
source install/bin/remoll.sh
scripts/tests/test_macros.sh ${{ matrix.suite }}
ls -al logfiles rootfiles
- uses: actions/upload-artifact@v2
with:
name: test_macros_${{ matrix.suite }}_logfiles
path: |
logfiles/
retention-days: 3