summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-12 21:37:25 +0800
committerruki <[email protected]>2020-09-12 21:37:25 +0800
commit366e7fcdcb21c1e1dc53c8d52176289be93e34b9 (patch)
treec1975b8696d44a904f6b9b1127b629f1b24cbc70 /.github
parent6d4e9bcb6bb5b7287fd90c86181e34371d3f18e2 (diff)
add msys2/mingw workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/msys2_mingw.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/msys2_mingw.yml b/.github/workflows/msys2_mingw.yml
new file mode 100644
index 000000000..d2c99045d
--- /dev/null
+++ b/.github/workflows/msys2_mingw.yml
@@ -0,0 +1,39 @@
+name: MSYS2 (MingW)
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+ runs-on: windows-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ include: [
+ { msystem: MINGW64, arch: x86_64 },
+ { msystem: MINGW32, arch: i686 }
+ ]
+ steps:
+
+ - uses: actions/checkout@v2
+ with:
+ path: temp
+ fetch-depth: 0
+
+ - uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{ matrix.msystem }}
+ install: git base-devel mingw-w64-${{ matrix.arch }}-toolchain
+ update: true
+
+ - name: Move Checkout
+ run: |
+ Copy-Item -Path ".\temp" -Destination "C:\_" -Recurse
+ - name: Build
+ shell: msys2 {0}
+ run: |
+ cd /C/_
+ make build
+ source .\scripts\srcenv.profile
+ xmake lua -v -D tests/run.lua