Merge pull request #5725 from xmake-io/linkonly #12785
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MSYS2 (MingW) | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: windows-latest | |
concurrency: | |
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MSYS2_MINGW-${{ matrix.arch }} | |
cancel-in-progress: true | |
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/_ | |
./configure --prefix=${{ matrix.prefix }} | |
make | |
make install | |
xmake --version | |
- name: Tests | |
shell: msys2 {0} | |
run: | | |
cd /C/_ | |
xmake lua -v -D tests/run.lua | |
xrepo --version |