Skip to content

Commit

Permalink
start of clang ci
Browse files Browse the repository at this point in the history
  • Loading branch information
UE4SS committed Oct 22, 2023
1 parent 3cea237 commit fc7f7f7
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/win_clang_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
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

0 comments on commit fc7f7f7

Please sign in to comment.