-
Notifications
You must be signed in to change notification settings - Fork 8
106 lines (93 loc) · 2.43 KB
/
CI.yml
File metadata and controls
106 lines (93 loc) · 2.43 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: CI
on:
push:
branches: '**'
tags-ignore: '**'
paths:
- 'pak01_dir/**'
- 'smsm/**'
pull_request:
branches: '**'
paths:
- 'pak01_dir/**'
- 'smsm/**'
workflow_dispatch:
jobs:
vpk:
name: Pack files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Pack VPK
run: |
wget https://github.com/craftablescience/VPKEdit/releases/download/v4.4.2/VPKEdit-Linux-Standalone-CLI-gcc-Release.zip
unzip VPKEdit-Linux-Standalone-CLI-gcc-Release.zip
chmod +x ./vpkeditcli
./vpkeditcli -s -v 1 --no-progress pak01_dir
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: mod-files
path: |
cfg/
maps/
resource/
scripts/
media/
gameinfo.txt
pak01_dir.vpk
if-no-files-found: error
build-lin:
name: SMSM Linux Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y g++-10-multilib
- name: Build
run: |
cd smsm
make -j$(nproc)
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: smsm-linux
path: smsm/smsm.so
if-no-files-found: error
build-win:
name: SMSM Windows Build
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Build
run: |
cd smsm
msbuild -m -t:chaos -p:"Platform=x86" SMSM.sln
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: smsm-windows
path: |
smsm\bin\smsm.dll
smsm\bin\smsm.pdb
if-no-files-found: error
merge:
name: Mod Package
needs: [vpk, build-lin, build-win]
runs-on: ubuntu-latest
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: Portal 2 Speedrun Mod
delete-merged: true