1+ name : " Swiftly Compiler"
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+ pull_request :
8+
9+ jobs :
10+ build :
11+ name : Build
12+ runs-on : ${{ matrix.os }}
13+ env :
14+ MMSOURCE20 : ${{ github.workspace }}/swiftly/alliedmodders/metamod
15+ HL2SDKCS2 : ${{ github.workspace }}/swiftly/alliedmodders/hl2sdk
16+ container : ${{ matrix.container }}
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ os : [Linux, windows-latest]
21+ include :
22+ - os : Linux
23+ container : registry.gitlab.steamos.cloud/steamrt/sniper/sdk
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ with :
28+ path : swiftly
29+ submodules : recursive
30+
31+ - name : Checkout AMBuild
32+ uses : actions/checkout@v4
33+ with :
34+ repository : alliedmodders/ambuild
35+ path : ambuild
36+
37+ - name : Install AMBuild
38+ run : |
39+ cd ambuild; python setup.py install; cd ..
40+
41+ - name : Build - Linux
42+ if : matrix.os == 'Linux'
43+ working-directory : swiftly
44+ shell : bash
45+ run : |
46+ sudo apt update
47+ sudo apt install -y libreadline-dev libboost-all-dev fdupes unzip
48+ bash ./setup.sh
49+
50+ - name : Prepare Build - Windows
51+ if : matrix.os == 'windows-latest'
52+ working-directory : swiftly
53+ run : |
54+ ./setup.ps1
55+
56+ - name : Upload Artifacts Linux
57+ if : matrix.os == 'Linux'
58+ uses : actions/upload-artifact@v4
59+ with :
60+ name : Swiftly Plugin Linux
61+ path : ${{ github.workspace }}/swiftly/build/package
62+
63+ - name : Upload Artifacts Windows
64+ if : matrix.os == 'windows-latest'
65+ uses : actions/upload-artifact@v4
66+ with :
67+ name : Swiftly Plugin Windows
68+ path : ${{ github.workspace }}/swiftly/build/package
0 commit comments