Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed Dec 19, 2023
1 parent 034f94e commit 5ae8890
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,42 +25,40 @@ jobs:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
build_type: [Release]
c_compiler: [cl, clang, gcc]
c_compiler: [cl, clang] #, gcc]
asm_compiler: [nasm]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
asm_compiler: nasm
- os: windows-latest
c_compiler: gcc
cpp_compiler: g++
asm_compiler: nasm
- os: windows-latest
c_compiler: clang
cpp_compiler: clang++
asm_compiler: nasm
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
asm_compiler: nasm
artifact_name: Windows
install_nasm: ""
#- os: ubuntu-latest
# c_compiler: gcc
# cpp_compiler: g++
# asm_compiler: nasm
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
asm_compiler: nasm
- os: macos-latest
c_compiler: gcc
cpp_compiler: g++
asm_compiler: nasm
artifact_name: Linux
install_nasm: apt install -y nasm
#- os: macos-latest
# c_compiler: gcc
# cpp_compiler: g++
# asm_compiler: nasm
- os: macos-latest
c_compiler: clang
cpp_compiler: clang++
asm_compiler: nasm
artifact_name: MacOS
install_nasm: brew install nasm
exclude:
#- os: windows-latest
# c_compiler: gcc
#- os: windows-latest
# c_compiler: clang
- os: windows-latest
c_compiler: clang
- os: ubuntu-latest
c_compiler: cl
- os: macos-latest
Expand All @@ -77,6 +75,11 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Install NASM
shell: bash
run: |
${{ matrix.install_nasm }}
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
Expand All @@ -101,5 +104,5 @@ jobs:
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: OpenMBU-${{ matrix.os }}-${{ matrix.c_compiler }}
name: OpenMBU-${{ matrix.artifact_name }}-${{ matrix.c_compiler }}
path: game

0 comments on commit 5ae8890

Please sign in to comment.