Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Add grenade history #234

Add grenade history

Add grenade history #234

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