Skip to content

chore: change to actions/setup-node@v4 #46

chore: change to actions/setup-node@v4

chore: change to actions/setup-node@v4 #46

Workflow file for this run

name: LLHL - New version release
on:
push:
jobs:
build:
runs-on: ubuntu-latest
container: centos:centos7
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- name: Setting up CentOS 7 mirrorlist
run: |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
- name: Installing required packages
run: |
yum install -y git make wget tar zip gcc gcc-c++ glibc-devel.i686 libstdc++-devel.i686
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 12
- name: Checkout LLHL AGMOD repository
run: |
git clone https://github.com/7mochi/llhl-agmod
- name: Checkout LLHL repository
run: |
git clone https://github.com/7mochi/llhl
cd llhl && git checkout 3.0-stable && cd $GITHUB_WORKSPACE
- name: Build LLHL AGMOD serverfile .so
run: |
cd llhl-agmod
CPATH=$CPATH:/usr/include/c++/4.8.5/i686-redhat-linux CFG=$CONFIGURATION make -C dlls
cd $GITHUB_WORKSPACE
- name: Build LLHL proyect (Linux) with node-amxxpack
run: |
cd llhl && make init-linux && make build-linux
- name: Download latest AMX Mod X 1.9
run: |
wget "https://www.amxmodx.org/latest.php?version=1.9&os=linux&package=base" -O amxx.tar.gz
tar -xzf amxx.tar.gz -C llhl/dist/ag
- name: Create folder and move LLHL AGMOD .so
run: |
mkdir llhl/dist/ag/dlls
mv llhl-agmod/dlls/ag_i386.so llhl/dist/ag/ag.so
mv llhl-agmod/network/delta.lst llhl/dist/ag/delta.lst
- name: Prepare releases in zip
run: |
cd llhl/dist && zip -r ../llhl-${{github.ref_name}}-linux.zip *