Debian Codegraph @

.github/workflows/ci-test.yml

raw
1 name: tests
2
3 on:
4 push:
5 branches: [ '**' ]
6 pull_request:
7 branches: [ '**' ]
8
9 permissions:
10 contents: read
11
12 jobs:
13 build:
14
15 runs-on: ci-test
16 if: ${{ github.repository != 'intel/pcm' }}
17
18 steps:
19 - name: Harden Runner
20 uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
21 with:
22 egress-policy: audit
23
24 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25 with:
26 submodules: recursive
27 - name: Configure CMake
28 run: |
29 cmake --version
30 rm -rf ${{ github.workspace }}/build
31 cmake -B ${{ github.workspace }}/build -DPCM_NO_ASAN=OFF
32 - name: Build
33 run: |
34 g++ --version
35 cd ${{ github.workspace }}/build
36 make -j$(nproc)
37 ldd bin/pcm
38 - name: Test
39 run: |
40 set -o pipefail
41 bash ${{ github.workspace }}/tests/test.sh 2>&1 | tee test-log.txt
42
43 - name: upload-artifact
44 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
45 with:
46 name: test-log-${{ github.sha }}
47 path: test-log.txt
48
49 - name: upload-artifact
50 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
51 with:
52 name: test-log-raw-tr-wo_ext-${{ github.sha }}
53 path: build/bin/raw_tr_wo_ext.csv
54
55 - name: upload-artifact
56 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
57 with:
58 name: test-log-raw-tr-wi_ext-${{ github.sha }}
59 path: build/bin/raw_tr_wi_ext.csv
60
61 - name: upload-artifact
62 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
63 with:
64 name: pcm-csv-${{ github.sha }}
65 path: build/bin/pcm.csv
66
67 - name: upload-artifact
68 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
69 with:
70 name: pcm-memory-csv-${{ github.sha }}
71 path: build/bin/pcm-memory.csv
72
73 - name: upload-artifact
74 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
75 with:
76 name: test-log-raw-tr-wi_ext-single_header-${{ github.sha }}
77 path: build/bin/raw_tr_wi_ext_single_header.csv
78
79 - name: upload-artifact
80 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
81 with:
82 name: test-log-raw-edp-${{ github.sha }}
83 path: build/bin/raw_edp.txt
84
85 - name: upload-artifact
86 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
87 with:
88 name: test-log-raw-json-${{ github.sha }}
89 path: build/bin/raw_json.json
90
91 - name: upload-artifact
92 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
93 with:
94 name: test-log-raw-edp-offlined-cores-${{ github.sha }}
95 path: build/bin/raw_edp_offlined_cores.txt