From d670913fd2e4e75bff4a0efd63e1dc1254cfdb66 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 14 Jan 2021 05:39:03 -0500 Subject: [PATCH] [host] windows: build pull requests and master with GitHub Actions --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dfd0cca..fc359390 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,3 +51,26 @@ jobs: run: | cd host/build make -j$(nproc) + + host-windows: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + - name: Install Windows host dependencies + run: | + sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 nsis + - name: Configure Windows host + run: | + mkdir host/build + cd host/build + cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-mingw64.cmake .. + - name: Build Windows host + run: | + cd host/build + make -j$(nproc) + - name: Build Windows host installer + run: | + cd host/build + makensis platform/Windows/installer.nsi