Skip to content

Commit

Permalink
Simplify CI steps
Browse files Browse the repository at this point in the history
  • Loading branch information
r52 committed Mar 27, 2023
1 parent 77a9b08 commit 8f60095
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,19 @@ jobs:
arch: "win64_msvc2019_64"
cc: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\x64\bin\clang-cl.exe'
cxx: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\x64\bin\clang-cl.exe'
g: '-G "Visual Studio 17 2022" -T ClangCL,host=x64 -A x64'
- builder: ubuntu-gcc
os: ubuntu-latest
arch: "gcc_64"
cc: gcc-12
cxx: g++-12
g: "-G Ninja"
- builder: ubuntu-clang
os: ubuntu-latest
arch: "gcc_64"
cc: clang-16
cxx: clang++-16
g: "-G Ninja"

name: Build Quasar
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -74,16 +77,11 @@ jobs:
with:
vcpkgJsonGlob: "vcpkg.json"

- name: Configure Project Windows
if: runner.os == 'Windows'
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE "-DCMAKE_C_COMPILER:FILEPATH=${{ matrix.cc }}" "-DCMAKE_CXX_COMPILER:FILEPATH=${{ matrix.cxx }}" -S./ -B./build -G "Visual Studio 17 2022" -T ClangCL,host=x64 -A x64

- name: Configure Project Linux
if: runner.os == 'Linux'
- name: Configure Project
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -S./ -B./build -G Ninja
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -S./ -B./build ${{ matrix.g }}

- name: Build Project
run: cmake --build ./build --config Release --
Expand Down

0 comments on commit 8f60095

Please sign in to comment.