Skip to content

Refactor SDL font management to locate fonts by name and style #71

Refactor SDL font management to locate fonts by name and style

Refactor SDL font management to locate fonts by name and style #71

Workflow file for this run

name: build
on: push
jobs:
compile-msvc-x86-release:
name: Windows MSVC x86 Release
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --preset x86-msvc-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --build build/x86-msvc-relwithdebinfo --target tools studio KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x86-msvc-relwithdebinfo --output-on-failure --timeout 60
- name: CMake Install
shell: cmd
run: |
cmake --install build/x86-msvc-relwithdebinfo --prefix dist/x86-msvc-relwithdebinfo
- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x86 debug symbols
path: |
build/x86-msvc-relwithdebinfo/src/3dmovie.pdb
build/x86-msvc-relwithdebinfo/src/chomp/studio/*.i
- name: Upload Release
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x86
path: |
dist/x86-msvc-relwithdebinfo
compile-clang-x86-debug:
name: Windows Clang x86 Debug
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Visual Studio clang
# Move the separate Github Action LLVM install out of the way to prevent it from being
# detected by cmake: this causes us to fall back to the version provided by VS instead
run: |
Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore"
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --preset x86-clangcl-debug -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake --build build/x86-clangcl-debug --target KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x86-clangcl-debug --output-on-failure --timeout 60
compile-msvc-x64-debug:
name: Windows MSVC x64 Debug
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --preset x64-msvc-debug -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --build build/x64-msvc-debug --target KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x64-msvc-debug --output-on-failure --timeout 60
compile-clang-x64-release:
name: Windows Clang x64 Release
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Visual Studio clang
# Move the separate Github Action LLVM install out of the way to prevent it from being
# detected by cmake: this causes us to fall back to the version provided by VS instead
run: |
Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore"
- name: CMake Generate
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --preset x64-clangcl-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF
- name: CMake Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake --build build/x64-clangcl-relwithdebinfo --target tools studio KauaiTest
- name: Run tests
shell: cmd
run: |
ctest --test-dir build/x64-clangcl-relwithdebinfo --output-on-failure --timeout 60
- name: CMake Install
shell: cmd
run: |
cmake --install build/x64-clangcl-relwithdebinfo --prefix dist/x64-clangcl-relwithdebinfo
move dist\x64-clangcl-relwithdebinfo\3dmovie.exe dist\x64-clangcl-relwithdebinfo\3dmovie-x64.exe
move build\x64-clangcl-relwithdebinfo\src\3dmovie.pdb build\x64-clangcl-relwithdebinfo\src\3dmovie-x64.pdb
- name: Upload debug symbols
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x64 debug symbols
path: |
build/x64-clangcl-relwithdebinfo/src/3dmovie-x64.pdb
build/x64-clangcl-relwithdebinfo/src/chomp/studio/*.i
- name: Upload Release
uses: actions/upload-artifact@v4
with:
name: 3DMMEx Windows x64
path: |
dist/x64-clangcl-relwithdebinfo