From 86010b399cecb9eb3923102eb4d0115358acdeb1 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Tue, 2 Feb 2021 13:41:30 +0800 Subject: [PATCH] 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. --- .github/workflows/deps-test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deps-test.yml diff --git a/.github/workflows/deps-test.yml b/.github/workflows/deps-test.yml new file mode 100644 index 00000000..8e915f4e --- /dev/null +++ b/.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