Fixed CreateStackArrayInContainer so it doesn't return error if there… #571
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: Compile test | |
on: [push, pull_request] | |
jobs: | |
compile_test: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest ecompile | |
run: | | |
wget -q https://github.com/polserver/polserver/releases/download/NightlyRelease/Nightly-Linux-clang.zip | |
unzip Nightly-Linux-clang.zip | |
rm -f *_dbg.zip | |
rm -f Nightly-Linux-clang.zip | |
unzip -j -o polserver*.zip | |
echo "Unzip Complete" | |
cp ecompile scripts/ | |
cp *.em scripts/ | |
echo "ModuleDirectory=scripts" >> scripts/ecompile.cfg | |
echo "IncludeDirectory=scripts" >> scripts/ecompile.cfg | |
echo "PolScriptRoot=scripts" >> scripts/ecompile.cfg | |
echo "PackageRoot=pkg" >> scripts/ecompile.cfg | |
echo "DisplaySummary=1" >> scripts/ecompile.cfg | |
echo "DisplayWarnings=1" >> scripts/ecompile.cfg | |
echo "CompileAspPages=1" >> scripts/ecompile.cfg | |
sudo apt-get update | |
sudo apt-get install clang-14 -y | |
- name: Compile | |
run: | | |
scripts/ecompile -A -T | |
if (( $(find . -name "*.ecl" | wc -l) < 1)); then echo "ERROR: Failed to find any compiled .ecl files"; exit 1; fi; | |
notify_on_failure: | |
needs: compile_test | |
runs-on: "ubuntu-latest" | |
if: failure() | |
steps: | |
- name: Discord notification failure | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: turleypol/actions-status-discord@master | |
with: | |
status: failure | |
job: Compile test | |
notify_on_success: | |
needs: compile_test | |
runs-on: "ubuntu-latest" | |
if: success() | |
steps: | |
- name: Discord notification success | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: turleypol/actions-status-discord@master | |
with: | |
status: success | |
job: Compile test | |
notify_on_cancel: | |
needs: compile_test | |
runs-on: "ubuntu-latest" | |
if: cancelled() | |
steps: | |
- name: Discord notification cancelled | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: turleypol/actions-status-discord@master | |
with: | |
status: cancelled | |
job: Compile test |