From 062c4e32cba40e4b40f66d0a71a052c654031c18 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 15 Jan 2021 18:55:13 -0500 Subject: [PATCH] [host] windows: test native build on GitHub Actions --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 852eb111..9e049c64 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,21 +55,21 @@ jobs: cd host/build make -j$(nproc) - host-windows: + host-windows-cross: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v1 with: submodules: recursive - - name: Install Windows host dependencies + - name: Install Windows host cross-compile dependencies run: | sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 nsis - - name: Configure Windows host + - name: Configure Windows host for cross-compile run: | mkdir host/build cd host/build cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-mingw64.cmake .. - - name: Build Windows host + - name: Cross-compile Windows host run: | cd host/build make -j$(nproc) @@ -78,6 +78,26 @@ jobs: cd host/build makensis platform/Windows/installer.nsi + host-windows-native: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + - name: Configure Windows host for native MinGW-w64 + run: | + mkdir host\build + cd host\build + cmake -G "MinGW Makefiles" .. + - name: Build Windows host on native MinGW-w64 + run: | + cd host\build + mingw32-make "-j$([Environment]::ProcessorCount)" + - name: Build Windows host installer + run: | + cd host\build + makensis platform\Windows\installer.nsi + obs: runs-on: ubuntu-latest strategy: