From 5ced9e2abc0921a8759631c3cbd84aec59a9b2f6 Mon Sep 17 00:00:00 2001 From: "Dementiev, Roman" Date: Fri, 5 Jul 2024 08:11:13 +0200 Subject: [PATCH] support g++-7 on gcc9 runner Change-Id: I1972b154a7ea97320607590cfb1e586fb361ec6b --- .github/workflows/ci-gcc7.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci-gcc7.yml diff --git a/.github/workflows/ci-gcc7.yml b/.github/workflows/ci-gcc7.yml new file mode 100644 index 00000000..1cb4c54e --- /dev/null +++ b/.github/workflows/ci-gcc7.yml @@ -0,0 +1,36 @@ +name: g++ 7 build + +on: + push: + branches: [ '**' ] + pull_request: + branches: [ '**' ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ci-gcc9 + if: ${{ github.repository != 'intel/pcm' }} + + steps: + - name: Harden Runner + uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 + with: + egress-policy: audit + + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + submodules: recursive + - name: Configure CMake + run: | + cmake --version + rm -rf ${{ github.workspace }}/build + CXX=g++-7 CC=gcc-7 cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build + - name: Build and Install + run: | + g++-7 --version + cd ${{ github.workspace }}/build + make install -j$(nproc)