Skip to content

Commit

Permalink
CI: Add Linux / clang to build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
winterheart committed Apr 21, 2024
1 parent 7463cb7 commit 6a6f657
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,26 @@ jobs:
fail-fast: false
matrix:
os:
- {runner: windows-latest, preset: win}
- {runner: macos-12, preset: mac} # This is supposed to be Intel for now, and what macos-latest is defaulting to for some reason (as of 04/2024)
- {runner: macos-14, preset: mac} # This is supposed to be M1
- {runner: ubuntu-latest, preset: linux}
- runner: windows-latest
preset: win
cc: cl
cxx: cl
- runner: macos-12 # This is supposed to be Intel for now, and what macos-latest is defaulting to for some reason (as of 04/2024)
preset: mac
cc: cc
cxx: c++
- runner: macos-14 # This is supposed to be M1
preset: mac
cc: cc
cxx: c++
- runner: ubuntu-latest
preset: linux
cc: gcc
cxx: g++
- runner: ubuntu-latest
preset: linux
cc: clang
cxx: clang++

runs-on: ${{ matrix.os.runner }}

Expand All @@ -39,6 +55,9 @@ jobs:
mkdir ~/Descent3
- name: Configure CMake
env:
CC: ${{ matrix.os.cc }}
CXX: ${{ matrix.os.cxx }}
run: cmake --preset ${{ matrix.os.preset }}

- name: Debug Build
Expand All @@ -50,7 +69,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build_${{ matrix.os.runner }}
name: build_${{ matrix.os.runner }}_${{ matrix.os.cxx }}
path: |
${{ github.workspace }}/builds/${{ matrix.os.preset }}/Descent3/Debug/
${{ github.workspace }}/builds/${{ matrix.os.preset }}/Descent3/Release/

0 comments on commit 6a6f657

Please sign in to comment.