tTry to build for Windows in a mingw Docker image - vaccinewars - be a doctor a… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 398499b040c7d1c13c9c26c61c1a714a582744a5 | |
parent 39a25ac42e5cd4ee7f3fac775dfac616b6145cc3 | |
Author: Ben Webb <[email protected]> | |
Date: Fri, 1 Jan 2021 23:32:05 -0800 | |
Try to build for Windows in a mingw Docker image | |
Diffstat: | |
M .github/workflows/build.yml | 7 ++++++- | |
1 file changed, 6 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml | |
t@@ -15,12 +15,16 @@ jobs: | |
include: | |
- os: macos-latest | |
flags: "--enable-networking" | |
+ - os: ubuntu-latest | |
+ container: benmwebb/mingw | |
+ flags: "--host=x86_64-w64-mingw32 --enable-nativewin32" | |
runs-on: ${{ matrix.os }} | |
+ container: ${{ matrix.container }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies (Linux) | |
- if: matrix.os == 'ubuntu-latest' | |
+ if: matrix.os == 'ubuntu-latest' && matrix.container == null | |
run: | | |
sudo apt-get update -qq && sudo apt-get install -qq automake autoconf … | |
- name: Install dependencies (Mac) | |
t@@ -31,6 +35,7 @@ jobs: | |
run: | | |
./autogen.sh ${{ matrix.flags }} && make -j2 | |
- name: Test | |
+ if: matrix.container == null | |
run: | | |
src/dopewars -v | |
src/dopewars -h |