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

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marqdevx committed Oct 17, 2023
1 parent 6d76e14 commit 49d5b7a
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/compile-metamod-addon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Compile Metamod Addon
on:
- push
- pull_request

env:
HL2SDKCS2: /home/runner/work/mm-cs2-scrim/mm-cs2-scrim/sdk
MMSOURCE_DEV: /home/runner/work/mm-cs2-scrim/mm-cs2-scrim/metamod-source
CC: clang
CXX: clang++

jobs:
build:
runs-on: ubuntu-latest

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 /home/runner/work/mm-cs2-scrim/mm-cs2-scrim/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 /home/runner/work/mm-cs2-scrim/mm-cs2-scrim/ambuild && sudo python3 ./setup.py install
ls -la
cd /home/runner/work/mm-cs2-scrim/mm-cs2-scrim
ls -la
mkdir build && cd build && python3 ../configure.py --enable-optimize --symbol-files --sdks cs2
ambuild

0 comments on commit 49d5b7a

Please sign in to comment.