forked from UE4SS-RE/RE-UE4SS
-
Notifications
You must be signed in to change notification settings - Fork 7
79 lines (76 loc) · 2.5 KB
/
linux-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Linux 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/linux-test.yml"
- "CMakeLists.txt"
- "cmake/**"
- tools/**
- xmake.lua
permissions:
contents: read
jobs:
make-release:
runs-on: ubuntu-22.04
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 Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Setup LLVM
uses: ZhongRuoyu/setup-llvm@v0
with:
llvm-version: 18
- uses: goto-bus-stop/setup-zig@v2
- run: zig cc -v
- name: Upgrade libstdc++
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt -y update
sudo apt -y install --only-upgrade libstdc++6
sudo apt -y install libstdc++-13-dev
- name: Setup Rust
uses: dtolnay/[email protected]
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'linux-test'
- name: Build
run: |
xmake f -y --ue4ssUI=TUI --ue4ssInput=y --ue4ssIsBeta=y -m "Game__Shipping__Linux"
XMAKE_COLORTERM=nocolor xmake build -v -D > build.log
- name: Stripping
run: |
mkdir prepackage
objcopy --only-keep-debug Binaries/Game__Shipping__Linux/UE4SS/libUE4SS.so ./prepackage/libUE4SS.so.debug
cp Binaries/Game__Shipping__Linux/UE4SS/libUE4SS.so ./prepackage/libUE4SS.so
strip --strip-debug --strip-unneeded ./prepackage/libUE4SS.so
cd ./prepackage && objcopy --add-gnu-debuglink=libUE4SS.so.debug ./libUE4SS.so && cd ..
- name: Package
run: python ./tools/buildscripts/build.py package -d ./prepackage -s linux64
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Linux-Release
path: |
release/zDEV-UE4SS_0.0.0.zip
build.log