Build Test - Windows Clang #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Test - Windows Clang | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
paths: | |
- "UE4SS/src/**" | |
- "UE4SS/include/**" | |
- "UE4SS/generated_src/**" | |
- "UE4SS/generated_include/**" | |
- "deps/**" | |
- "UE4SS/proxy_generator/**" | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
include: | |
- { sys: mingw64, env: x86_64 } | |
- { sys: clang64, env: clang-x86_x64 } | |
steps: | |
- name: Setup github SSH | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.UEPSEUDO_SSH_KEY }} | |
known_hosts: unnecessary | |
- name: Setup MSYS | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{matrix.sys}} | |
install: mingw-x64-${{matrix.env}}-openssl | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 # needed to get commits since last tag | |
ssh-key: ${{ secrets.UEPSEUDO_SSH_KEY }} | |
- name: Setup Ninja | |
uses: seanmiddleditch/gha-setup-ninja@v3 | |
- name: Setup DirectX SDK (for xinput1_3.dll) | |
run: | | |
Invoke-WebRequest -URI https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe -OutFile dxredist.exe | |
Start-Process -Wait dxredist.exe -ArgumentList "/q /t:`"$PWD/dxredist`" /c" | |
Start-Process -Wait dxredist/DXSETUP.exe /silent | |
Invoke-WebRequest -URI https://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe -OutFile dxwebsetup.exe | |
Start-Process -Wait dxwebsetup.exe /q | |
- name: Build | |
run: | | |
cmake -B build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Game__Shipping__Win64 | |
cmake --build build |