Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed Dec 18, 2023
1 parent 6f008f9 commit dc8f488
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,21 @@ jobs:
run: |
mkdir ../plugins/
find * -name "*.sma" \
-exec echo -e "\n\n> Compile {} <" \;\
-exec ${amxxpc} {} \
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" \
-i"$REAPI_INCLUDE" \
-o../plugins/{} \
\;
-i"$REAPI_INCLUDE"
}
export -f compile
find * -type f -name "*.sma" -exec bash -c 'compile "$0"' {} \;
- name: Move files
run: |
Expand Down

0 comments on commit dc8f488

Please sign in to comment.