summaryrefslogtreecommitdiff
path: root/.github/workflows/msys2_mingw.yml
blob: 3964d5c2fcfd4180423e3a568f6a87d9f6c12987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: MSYS2 (MingW)

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: windows-latest
    strategy:
      fail-fast: false
      matrix:
        include: [
          { msystem: MINGW64, arch: x86_64, prefix: /mingw64 },
          { msystem: MINGW32, arch: i686, prefix: /mingw32   }
        ]

    steps:

      - uses: actions/checkout@v2
        with:
          path: temp
          submodules: true

      - uses: msys2/setup-msys2@v2
        with:
          msystem: ${{ matrix.msystem }}
          install: git base-devel unzip 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
          make install PREFIX=${{ matrix.prefix }}
          xmake --version

      - name: Tests
        shell: msys2 {0}
        run: |
          cd /C/_
          xmake lua -v -D tests/run.lua
          xrepo --version