Skip to content

fix windows build

fix windows build #97

Workflow file for this run

name: Windows Test Build
on:
workflow_dispatch:
push:
branches: [ "linux-port" ]
paths:
- "UE4SS/src/**"
- "UE4SS/include/**"
- "UE4SS/generated_src/**"
- "UE4SS/generated_include/**"
- "deps/**"
- "UE4SS/proxy_generator/**"
- ".github/workflows/windows-test.yml"
- "CMakeLists.txt"
permissions:
contents: read
jobs:
make-release:
runs-on: windows-2022
steps:
- name: Setup github SSH
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSHKEY }}
known_hosts: unnecessary
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # needed to get commits since last tag
ssh-key: ${{ secrets.SSHKEY }}
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Setup Rust
uses: dtolnay/[email protected]
- name: Build
run: |
xmake f -m "Game__Shipping__Win64" -y
xmake build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Windows-Release
path: build/Output/Game__Shipping__Win64/UE4SS/bin