Skip to content

Commit

Permalink
Generates plugin ii in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
ArKaNeMaN committed Nov 28, 2024
1 parent 65e9de4 commit e82ded9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
env:
PACKAGE_NAME: VipModular
STORE_README: 0
GENERATE_PLUGINS_INI: 1
PLUGINS_INI_POSTFIX: vipm

jobs:
build:
Expand Down Expand Up @@ -73,7 +75,14 @@ jobs:
working-directory: amxmodx/scripting/
env:
REAPI_INCLUDE: ${{ env.REAPI_INCLUDE_PATH }}
GENERATE_PLUGINS_INI: ${{ env.GENERATE_PLUGINS_INI }}
PLUGINS_INI_POSTFIX: ${{ env.PLUGINS_INI_POSTFIX }}
run: |
if [ ! -z "${GENERATE_PLUGINS_INI}" ]; then
plugin_ini_path="../configs/plugins-${PLUGINS_INI_POSTFIX}.ini"
touch $plugin_ini_path
fi
compile() {
sourcefile=$1
amxxfile="$(echo $sourcefile | sed -e 's/\.sma$/.amxx/')"
Expand All @@ -86,6 +95,10 @@ jobs:
-i"include" \
-i"$REAPI_INCLUDE" \
-i"$PARAMS_CONRTOLLER_INCLUDE"
if [ ! -z "${GENERATE_PLUGINS_INI}" ]; then
echo $amxxfile >> $plugin_ini_path
fi
}
export -f compile
Expand Down

0 comments on commit e82ded9

Please sign in to comment.