| 1 | name: MSYS2 Build |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ master ] |
| 6 | pull_request: |
| 7 | branches: [ master ] |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | runs-on: windows-latest |
| 12 | defaults: |
| 13 | run: |
| 14 | shell: msys2 {0} |
| 15 | env: |
| 16 | PYTHONIOENCODING: "utf-8" |
| 17 | steps: |
| 18 | - uses: actions/checkout@master |
| 19 | - uses: msys2/setup-msys2@v2 |
| 20 | with: |
| 21 | msystem: MINGW64 |
| 22 | update: true |
| 23 | install: base-devel git mingw-w64-x86_64-meson mingw-w64-x86_64-ninja mingw-w64-x86_64-pkg-config mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-pip mingw-w64-x86_64-toolchain |
| 24 | - name: Build |
| 25 | run: | |
| 26 | meson setup _build |
| 27 | meson compile -C _build |