2020-10-21 13:42:17 +02:00
|
|
|
name: CI (Windows)
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build-windows-gcc:
|
|
|
|
runs-on: windows-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
steps:
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
2020-10-25 17:05:13 +01:00
|
|
|
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-libc++
|
2020-10-21 13:42:17 +02:00
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
MINGW64: "/mingw64"
|
2020-10-25 17:05:13 +01:00
|
|
|
ARCHOPTS: "-fuse-ld=lld"
|
2021-04-01 14:10:50 +02:00
|
|
|
OVERRIDE_AR: "llvm-ar"
|
2020-10-21 13:42:17 +02:00
|
|
|
TOOLS: 1
|
|
|
|
run: make -j2
|
|
|
|
- name: Validate
|
2021-01-26 09:10:57 +01:00
|
|
|
run: ./mame -validate
|
2020-10-21 13:42:17 +02:00
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
2021-01-26 09:10:57 +01:00
|
|
|
name: mame-windows-gcc-${{ github.sha }}
|
|
|
|
path: mame.exe
|