Skip to content

Commit

Permalink
setting environment varaibles
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Dec 8, 2024
1 parent dd3b7b7 commit 89a255f
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 89a255f

Please sign in to comment.