Fixed variables logic #12
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: Linux Build CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ubuntu:18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add i386 architecture | |
run: dpkg --add-architecture i386 | |
- name: Update repository | |
run: apt-get update | |
- name: Install build dependencies | |
run: apt-get install -qq -y wget unzip build-essential gcc-4.8-multilib g++-4.8-multilib libgcc1:i386 | |
- name: Update alternatives | |
run: update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 | |
- name: Run build | |
working-directory: ./CSDM | |
run: make | |
- name: Move release file to publish | |
run: | | |
# Make Match BOT path | |
mkdir -p publish/addons/csdm/dlls | |
# Move released file to dlls | |
mv ./CSDM/Release/csdm_mm.so publish/addons/csdm/dlls | |
# Copy cstrike contents to publish dir | |
cp -ar cstrike/. publish | |
- name: Download metamod-r | |
run: | | |
# Get latest release version of metamod-r | |
wget --quiet https://github.com/theAsmodai/metamod-r/releases/download/1.3.0.138/metamod-bin-1.3.0.138.zip | |
# Unzip metamod library to metamod folder | |
unzip -p metamod-bin*.zip addons/metamod/metamod_i386.so > publish/addons/metamod/metamod_i386.so | |
- name: Download hitbox_fixer | |
run: | | |
# Get latest release version of hitbox_fixer | |
wget --quiet https://github.com/Garey27/hitbox_fixer/releases/download/1.1.5/hitbox_fix-bin-1.1.5.zip | |
# Unzip hitbox_fixer library to metamod folder | |
unzip -p hitbox_fix-bin*.zip addons/hitbox_fix/hitbox_fix_mm_i386.so > publish/addons/hitbox_fix/hitbox_fix_mm_i386.so | |
- name: Download accuracy-fix | |
run: | | |
# Get latest release version of accuracy-fix | |
wget --quiet https://github.com/SmileYzn/AccuracyFix/releases/download/1.0.4/accuracyfix-linux.zip | |
# Unzip accuracy-fix library to metamod folder | |
unzip -p accuracyfix-linux.zip addons/accuracyfix/dlls/accuracyfix_mm.so > publish/addons/accuracyfix/accuracyfix_mm.so | |
- name: Deploy artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: csdm-linux | |
path: publish/* |