Browse Source

Cherry-pick GitHub Actions Windows steps from 86010b3

This one uses 12.0-development branch of LOVE however.
Miku AuahDark 4 years ago
parent
commit
e578fb1058
1 changed files with 29 additions and 0 deletions
  1. 29 0
      .github/workflows/deps-test.yml

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

@@ -0,0 +1,29 @@
+name: build
+on: [push, pull_request]
+
+jobs:
+  windows:
+    runs-on: windows-latest
+    strategy:
+      fail-fast: false
+      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: 12.0-development
+    - 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