aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/compile-check.yml29
1 files changed, 29 insertions, 0 deletions
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"