Added Windows/clang GitHub CI build task. (#10373)

This commit is contained in:
invertego 2022-10-19 07:53:21 -07:00 committed by GitHub
parent 9f4d3ddfe6
commit 3ad363e469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,26 +23,41 @@ permissions:
jobs:
build-windows-gcc:
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
matrix:
compiler: [gcc, clang]
include:
- compiler: gcc
cc: gcc
cxx: g++
subtarget: mame
- compiler: clang
cc: clang
cxx: clang++
subtarget: tiny
steps:
- uses: msys2/setup-msys2@v2
with:
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-libc++
install: git make mingw-w64-x86_64-${{ matrix.compiler }} mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-libc++
- uses: actions/checkout@master
- name: Build
env:
MINGW64: "/mingw64"
ARCHOPTS: "-fuse-ld=lld"
OVERRIDE_AR: "llvm-ar"
OVERRIDE_CC: ${{ matrix.cc }}
OVERRIDE_CXX: ${{ matrix.cxx }}
SUBTARGET: ${{ matrix.subtarget }}
TOOLS: 1
run: make -j2
- name: Validate
run: ./mame -validate
run: ./mame* -validate
- uses: actions/upload-artifact@master
with:
name: mame-windows-gcc-${{ github.sha }}
path: mame.exe
name: mame-windows-${{ matrix.compiler }}-${{ github.sha }}
path: mame*.exe