From f228121fd818e513630ff5b43ce89c821a8c1211 Mon Sep 17 00:00:00 2001 From: eukara Date: Sun, 8 Oct 2023 22:26:47 -0700 Subject: [PATCH] Create win-ci.yaml --- .github/workflows/win-ci.yaml | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/win-ci.yaml diff --git a/.github/workflows/win-ci.yaml b/.github/workflows/win-ci.yaml new file mode 100644 index 0000000..4b624da --- /dev/null +++ b/.github/workflows/win-ci.yaml @@ -0,0 +1,51 @@ +name: Windows CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - { icon: '🟦', sys: mingw64 } + defaults: + run: + shell: msys2 {0} + steps: + + - name: 'checkout' + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: 'deps' + uses: msys2/setup-msys2@v2 + with: + msystem: ${{matrix.sys}} + update: true + install: >- + git + make + pacboy: >- + toolchain:p + glib2 + libxml2 + libjpeg-turbo + libpng + minizip-git + + - name: 'build' + run: | + make LDFLAGS="-lwsock32 -lws2_32" + + - uses: actions/upload-artifact@v3 + with: + name: vmap-win + path: vmap.exe