chore: add missing steps for windows build #50
Workflow file for this run
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: LLHL - New version release | |
on: | |
push: | |
jobs: | |
build-linux: | |
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@v3 | |
with: | |
node-version: 12 | |
- name: Clone LLHL AGMOD repository | |
run: | | |
git clone https://github.com/7mochi/llhl-agmod | |
- name: Clone 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 * | |
build-windows: | |
runs-on: windows-2019 | |
steps: | |
- name: Install NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Clone LLHL AGMOD repository | |
run: | | |
git clone https://github.com/7mochi/llhl-agmod | |
- name: Clone LLHL repository | |
run: | | |
git clone https://github.com/7mochi/llhl | |
cd llhl && git checkout 3.0-stable && cd $GITHUB_WORKSPACE | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1.1 | |
- name: Build LLHL AGMOD serverfile .dll | |
run: | | |
cd llhl-agmod | |
msbuild multiplayer.sln -target:ag /p:Configuration=Release | |
cd $GITHUB_WORKSPACE | |
- name: Build LLHL proyect (Windows) with node-amxxpack | |
run: | | |
cd llhl && make init-windows && make build-windows | |
- name: Download latest AMX Mod X 1.9 | |
run: | | |
wget "https://www.amxmodx.org/latest.php?version=1.9&os=windows&package=base" -O amxx.zip | |
unzip amxx.zip -d llhl/dist/ag | |
- name: Create folder and move LLHL AGMOD .dll | |
run: | | |
mkdir llhl/dist/ag/dlls | |
move llhl-agmod/dlls/ag.dll llhl/dist/ag/ag.dll | |
move 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 * |