Răsfoiți Sursa

Add GitHub Actions Windows build steps.

This will allows us to determine whetever any megasource changes causes
build failure in LOVE later on, rather than rerunning LOVE jobs
everytime.
Miku AuahDark 4 ani în urmă
părinte
comite
86010b399c
1 a modificat fișierele cu 28 adăugiri și 0 ștergeri
  1. 28 0
      .github/workflows/deps-test.yml

+ 28 - 0
.github/workflows/deps-test.yml

@@ -0,0 +1,28 @@
+name: build
+on: [push, pull_request]
+
+jobs:
+  windows:
+    runs-on: windows-latest
+    strategy:
+      matrix:
+        platform: [Win32, x64]
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v2
+      with:
+        path: megasource
+    - name: Checkout LÖVE
+      uses: actions/checkout@v2
+      with:
+        path: megasource/libs/love
+        repository: love2d/love
+        ref: master
+    - name: Configure
+      shell: cmd
+      env:
+        PLATFORM: ${{ matrix.platform }}
+      run: cmake -Bbuild -Hmegasource -T v142 -A %PLATFORM% -DCMAKE_INSTALL_PREFIX=%CD%\install
+    - name: Install
+      shell: cmd
+      run: cmake --build build --config Release --target install -j2