-
Notifications
You must be signed in to change notification settings - Fork 6
69 lines (61 loc) · 1.71 KB
/
ci.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
name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- main
jobs:
build:
name: Build WST Metamod Plugin
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
os: [windows-2022, ubuntu-latest]
include:
- os: windows-2022
- os: ubuntu-latest
container: registry.gitlab.steamos.cloud/steamrt/sniper/sdk
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: cs2-surftimer/metamod
- name: Checkout Metamod Source
uses: actions/checkout@v4
with:
repository: alliedmodders/metamod-source
ref: master
path: cs2-surftimer/metamod/metamod-source
submodules: recursive
- name: Checkout HL2SDK
uses: actions/checkout@v4
with:
repository: alliedmodders/hl2sdk
ref: cs2
path: cs2-surftimer/metamod/hl2sdk
- name: Checkout AMBuild
uses: actions/checkout@v4
with:
repository: alliedmodders/ambuild
path: cs2-surftimer/metamod/ambuild
- name: Install AMBuild
run: |
cd cs2-surftimer/metamod/ambuild && python setup.py install && cd ../../..
- name: Build Metamod
working-directory: cs2-surftimer/metamod
shell: bash
run: |
mkdir build && cd build
python ../configure.py --enable-optimize --symbol-files --sdks cs2
ambuild
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: metamod-${{ runner.os }}
path: cs2-surftimer/metamod/build/package