This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Add .back
grenade history
#231
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
name: Compile MM addon | |
on: | |
- push | |
- pull_request | |
env: | |
HL2SDKCS2: /__w/mm-cs2-scrim/mm-cs2-scrim/sdk | |
MMSOURCE_DEV: /__w/mm-cs2-scrim/mm-cs2-scrim/metamod-source | |
CC: clang | |
CXX: clang++ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: registry.gitlab.steamos.cloud/steamrt/sniper/sdk | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Clone metamod | |
uses: GuillaumeFalourd/[email protected] | |
with: | |
depth: 1 | |
branch: 'master' | |
owner: 'alliedmodders' | |
repository: 'metamod-source' | |
- name: Clone ambuild | |
uses: GuillaumeFalourd/[email protected] | |
with: | |
depth: 1 | |
branch: 'master' | |
owner: 'alliedmodders' | |
repository: 'ambuild' | |
- name: Info | |
run: | | |
echo $(pwd) | |
echo $HL2SDKCS2 | |
echo $MMSOURCE_DEV | |
ls -la | |
- name: Update submodules | |
run: | | |
cd metamod-source | |
git submodule update --recursive | |
- name: Compile | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
echo --- | |
sudo apt-get update | |
sudo apt-get install python3-setuptools -y | |
sudo apt-get install clang -y | |
sudo apt-get install python3 -y | |
sudo apt-get install gcc -y | |
echo --- | |
cd ambuild && sudo python3 ./setup.py install | |
ls -la | |
cd ../ | |
ls -la | |
mkdir build && cd build && python3 ../configure.py --sdks cs2 --targets x86_64 | |
ambuild |