From 366e7fcdcb21c1e1dc53c8d52176289be93e34b9 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 12 Sep 2020 21:37:25 +0800 Subject: add msys2/mingw workflow --- .github/workflows/msys2_mingw.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/msys2_mingw.yml (limited to '.github') 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 -- cgit v1.3.1