Skip to content

Commit

Permalink
fix: CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed Dec 18, 2023
1 parent 465da08 commit 89c0623
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 95 deletions.
89 changes: 0 additions & 89 deletions .github/publish.sh

This file was deleted.

18 changes: 12 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,21 @@ jobs:
run: |
mkdir ../plugins/
for sourcefile in *.sma;
do
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`"
echo -n "Compiling $sourcefile ... "
compile() {
sourcefile=$1
amxxfile="$(echo $sourcefile | sed -e 's/\.sma$/.amxx/')"
output_path="../plugins/$amxxfile"
mkdir -p $(dirname $output_path)
amxxpc $sourcefile -o"../plugins/$amxxfile" \
echo -n "Compiling $sourcefile ... "
amxxpc $sourcefile -o"$output_path" \
-i"include" \
-i"$REAPI_INCLUDE"
done
}
export -f compile
find * -type f -name "*.sma" -exec bash -c 'compile "$0"' {} \;
- name: Move files
run: |
Expand Down

0 comments on commit 89c0623

Please sign in to comment.