-
Notifications
You must be signed in to change notification settings - Fork 26
64 lines (60 loc) · 2.05 KB
/
c-cpp.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
name: Build & Deploy Engine
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
targetos: win32
targetarch: amd64
env:
SDL_VERSION: 2.0.14
GH_CPU_ARCH: ${{ matrix.targetarch }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANDROID_SDK_TOOLS_VER: 4333796
UPLOADTOOL_ISPRERELEASE: true
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Checkout xash-extras
uses: actions/checkout@v2
with:
repository: FWGS/xash-extras
path: xash-extras
- name: Dependencies
run: bash scripts/gha/deps_${{ matrix.targetos }}.sh
- name: Build
run: |
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
$msbuild = & "$vswhere" -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe | select-object -first 1
& $msbuild xash3d-fwgs.sln -property:Configuration=Release -property:Platform=x64
if (-not $?) { throw "Failed" }
env:
RTGL1_SDK_PATH: ${{ github.workspace }}\RTGL1
- name: Prepare folder
run: |
mkdir -p final/rt_bin
mkdir -p final/rt/valve/cl_dlls
mkdir -p final/rt/valve/dlls
mkdir -p final/valve
copy x64/Release/*.dll final/rt_bin
copy x64/Release/*.exe final/rt_bin
echo "xash3d.exe -console" | Out-File -encoding ASCII final/rt_bin/xash3d-console.bat
copy SDL2_VC/lib/x64/SDL2.dll final/rt_bin
copy HLSDK/cl_dlls/*.dll final/rt/valve/cl_dlls
copy HLSDK/dlls/*.dll final/rt/valve/dlls
copy -r RTGL1/ovrd/* final/rt
copy -r scripts/rt/* final/valve
copy RTGL1/VERSION final/VERSION_RTGL1
echo "${{ github.sha }}" | Out-File -encoding ASCII final/VERSION
- name: Upload
uses: actions/upload-artifact@v3
with:
name: hl1-rt
path: final/*