-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ws
committed
Nov 8, 2023
1 parent
5c77ffe
commit 7f83045
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |