From 145d5ac4de585c14a80a910a6bfbfae1e0b55a33 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 26 Jun 2022 19:41:13 +0200 Subject: [PATCH] Add Windows to the CI matrix. --- .github/workflows/ccpp.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 94430d553..3e42286b4 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -6,7 +6,7 @@ jobs: build-linux: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: apt run: sudo apt update && sudo apt install bison flex ninja-build - name: make @@ -15,9 +15,32 @@ jobs: build-macos: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: brew run: brew install ninja - name: make run: make + build-windows: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + update: true + msystem: MINGW32 + install: >- + make + mingw-w64-i686-gcc + mingw-w64-i686-lua + ninja + bison + flex + zip + - uses: actions/checkout@v3 + - name: build + run: | + make +