Skip to content

test

test #1

Workflow file for this run

name: Build
on:
workflow_dispatch:
workflow_call:
push:
paths-ignore:
- "**.md"
- "**.spr"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup AMXXPawn Compiler
uses: wopox1337/setup-amxxpawn@v1
- name: Compile plugins
working-directory: cstrike/addons/amxmodx/scripting/
run: |
compile() {
sourcefile=$1
amxxfile="$(echo $sourcefile | sed -e 's/\.sma$/.amxx/')"
output_path="../plugins/$amxxfile"
mkdir -p $(dirname $output_path)
echo -n "Compiling $sourcefile ... "
amxxpc "$sourcefile" -o"$output_path" -i"include" && echo "Done"
}
export -f compile
# Найти и скомпилировать все .sma файлы в папке scripting
find . -type f -name "*.sma" -exec bash -c 'compile "$0"' {} \;
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.repository }}
path: cstrike