From 89a255f65990742b9457dd62ba3df376ff0f0dc6 Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Sun, 8 Dec 2024 15:50:51 -0600 Subject: [PATCH] setting environment varaibles --- .github/workflows/build.yml | 60 ++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3fcb188..bf181a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,28 +1,34 @@ -name: Build - -on: [push, pull_request] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref || github.run_id }} - cancel-in-progress: true - -jobs: - build: - continue-on-error: true - strategy: - matrix: - build_type: [Release] - os: - - ubuntu-latest - - windows-latest - - macos-latest - runs-on: ${{ matrix.os }} - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Run Cmake - run: cmake -S 2024 -B build -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} - - - name: Build +name: Build + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + +jobs: + build: + continue-on-error: true + strategy: + matrix: + build_type: [Release] + os: + - ubuntu-latest + - windows-latest + - macos-latest + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set GCC environment variables on Ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + export CC=/usr/bin/gcc-14 + export CXX=/usr/bin/g++-14 + + - name: Run Cmake + run: cmake -S 2024 -B build -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} + + - name: Build run: cmake --build build --parallel 10 \ No newline at end of file