diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c99d639c..21a4e5a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: 'Release' XCODE_VERSION: '15.0' + GCC_VERSION: '12' jobs: build: @@ -27,6 +28,12 @@ jobs: if: ${{ contains(matrix.os, 'macos') }} run: sudo xcode-select -s '/Applications/Xcode_${{env.XCODE_VERSION}}.app/Contents/Developer' + - name: Select gcc version + if: ${{ contains(matrix.os, 'ubuntu') }} + run: | + export CC=gcc-${{env.GCC_VERSION}} + export CXX=g++-${{env.GCC_VERSION}} + - name: Prepare build run: | ls diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b1527bf..a83a7d2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,6 +57,7 @@ jobs: runs-on: ${{ matrix.os }} env: XCODE_VERSION: '15.0' + GCC_VERSION: '12' steps: - uses: actions/checkout@v3 @@ -65,6 +66,12 @@ jobs: if: ${{ contains(matrix.os, 'macos') }} run: sudo xcode-select -s '/Applications/Xcode_${{env.XCODE_VERSION}}.app/Contents/Developer' + - name: Select gcc version + if: ${{ contains(matrix.os, 'ubuntu') }} + run: | + export CC=gcc-${{env.GCC_VERSION}} + export CXX=g++-${{env.GCC_VERSION}} + - name: Prepare build run: | ls