Debian Codegraph @

.github/workflows/ci-gcc7.yml

raw
1 name: g++ 7 build
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-gcc9
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 CXX=g++-7 CC=gcc-7 cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build
32 - name: Build and Install
33 run: |
34 g++-7 --version
35 cd ${{ github.workspace }}/build
36 make install -j$(nproc)