diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2023-02-09 21:50:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 22:50:57 +0100 |
commit | 12cf8b98dea6407c031f3117b5c295480c87183a (patch) | |
tree | cd3e7376b2f4efde2ab9c203999e62eadf3fe8d9 /.github/workflows | |
parent | 9775ffb3b478a921f7d64d8907ab6c2b91128f40 (diff) | |
download | NorthstarMods-12cf8b98dea6407c031f3117b5c295480c87183a.tar.gz NorthstarMods-12cf8b98dea6407c031f3117b5c295480c87183a.zip |
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>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/compile-check.yml | 29 |
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" |