Skip to content

Commit

Permalink
let's try msvc clang
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Nov 9, 2024
1 parent 253e46c commit 83535e5
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,52 @@ jobs:
name: FAudio-SDL3-x64
path: release-x64/FAudio.dll

windows-msvc-clang-SDL3:
name: Windows Clang (MSVC) SDL3
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Cache SDL
uses: actions/cache@v4
env:
cache-name: cache-sdl
with:
path: C:\SDL
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Download SDL if not cached
run: |
if (-Not (Test-Path C:\SDL))
{
Invoke-WebRequest "https://github.com/libsdl-org/SDL/releases/download/preview-$env:SDL3_VERSION/SDL3-devel-$env:SDL3_VERSION-VC.zip" -OutFile C:\SDL.zip
Expand-Archive C:\SDL.zip -DestinationPath C:\
}
- name: CMake configure (Debug)
run: |
$env:LDFLAGS = "/LIBPATH:C:\SDL3-$env:SDL3_VERSION\lib\x64 "
cmake -B debug -G "Visual Studio 17 2022" . -DCMAKE_BUILD_TYPE=Debug `
-A x64 -T clang-cl `
-DSDL3_INCLUDE_DIRS="C:\SDL3-$env:SDL3_VERSION\include" `
-DSDL3_LIBRARIES="SDL3;SDL3main"
- name: Build (Debug)
run: cmake --build debug

- name: CMake configure (Release)
run: |
$env:LDFLAGS = "/LIBPATH:C:\SDL2-$env:SDL2_VERSION\lib\x86 "
cmake -B release -G "Visual Studio 17 2022" . -DCMAKE_BUILD_TYPE=Release `
-A x64 -T clang-cl `
-DSDL3_INCLUDE_DIRS="C:\SDL3-$env:SDL3_VERSION\include" `
-DSDL3_LIBRARIES="SDL3;SDL3main"
- name: Build (Release)
run: cmake --build release

macos-SDL3:
name: macOS (Universal) SDL3
runs-on: macos-latest
Expand Down

0 comments on commit 83535e5

Please sign in to comment.