ci: add GitHub Actions workflow 'test'

This commit is contained in:
umarcor 2020-11-29 09:26:13 +01:00
parent 45ea128f32
commit 685cf5c410
1 changed files with 49 additions and 0 deletions

49
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,49 @@
name: test
on:
push:
pull_request:
jobs:
test:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64 },
{ msystem: MINGW32, arch: i686 }
]
defaults:
run:
shell: msys2 {0}
env:
MINGW_INSTALLS: ${{ matrix.msystem }}
steps:
- run: git config --global core.autocrlf input
shell: bash
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
install: >
git
base-devel
mingw-w64-${{ matrix.arch }}-toolchain
update: true
- name: Build
run: |
cd msys2
makepkg-mingw --noconfirm --noprogressbar -sCLf
- name: Install
run: pacman -U --noconfirm msys2/*.zst
- uses: actions/upload-artifact@v2
with:
path: msys2/*.zst