Debian Codegraph @

.github/workflows/ci-cpack.yml

raw
1 name: CPack check
2
3 on:
4 push:
5 branches: [ '**' ]
6 pull_request:
7 branches: [ '**' ]
8
9 permissions:
10 contents: read
11
12 jobs:
13 job-build1:
14 runs-on: ci-gcc9
15 if: ${{ github.repository != 'intel/pcm' }}
16
17 steps:
18 - name: Harden Runner
19 uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
20 with:
21 egress-policy: audit
22
23 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24 with:
25 submodules: recursive
26 - name: Configure CMake
27 run: |
28 cmake --version
29 rm -rf ${{ github.workspace }}/build
30 cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build
31 - name: Build and Install
32 run: |
33 g++ --version
34 cd ${{ github.workspace }}/build
35 make -j$(nproc)
36 - name: CPack
37 run: |
38 cd ${{ github.workspace }}/build
39 cpack
40
41 job-build2:
42 runs-on: ci-test
43 if: ${{ github.repository != 'intel/pcm' }}
44
45 steps:
46 - name: Harden Runner
47 uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
48 with:
49 egress-policy: audit
50
51 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
52 with:
53 submodules: recursive
54 - name: Configure CMake
55 run: |
56 cmake --version
57 rm -rf ${{ github.workspace }}/build
58 cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build
59 - name: Build and Install
60 run: |
61 g++ --version
62 cd ${{ github.workspace }}/build
63 make -j$(nproc)
64 - name: CPack
65 run: |
66 cd ${{ github.workspace }}/build
67 cpack