aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/compile-check.yml
blob: b62c8313db49cff164913cabb40c0eab700274eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"