From 12cf8b98dea6407c031f3117b5c295480c87183a Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Thu, 9 Feb 2023 21:50:57 +0000 Subject: Compile check tests in CI (#575) * first test compile * rename job step * compile separately without Northstar.Custom * move to release instead of main branch * create json for compile check native functions * update to use v2 and json file * Add description of compile-check action Co-authored-by: Maya <11448698+RoyalBlue1@users.noreply.github.com> --- .github/workflows/compile-check.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/compile-check.yml (limited to '.github/workflows') diff --git a/.github/workflows/compile-check.yml b/.github/workflows/compile-check.yml new file mode 100644 index 00000000..b62c8313 --- /dev/null +++ b/.github/workflows/compile-check.yml @@ -0,0 +1,29 @@ +# This action checks whether all Squirrel files compile successfully using standalone Squirrel compiler +name: compile-check + +on: [push, pull_request] + +jobs: + compile: + runs-on: windows-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + with: + path: "mods" + + - name: Compile Scripts + uses: ASpoonPlaysGames/squirrel-re-compiler@v2 + with: + mods-directory: "${{ github.workspace }}/mods" + native-json: "${{ github.workspace }}/mods/.github/nativefuncs.json" + + - name: Remove Northstar.Custom + run: rmdir ${{ github.workspace }}\mods\Northstar.Custom /s /q + shell: cmd + + - name: Compile Scripts (No Northstar.Custom) + uses: ASpoonPlaysGames/squirrel-re-compiler@v2 + with: + mods-directory: "${{ github.workspace }}/mods" + native-json: "${{ github.workspace }}/mods/.github/nativefuncs.json" -- cgit v1.2.3