mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Added Windows/clang GitHub CI build task. (#10373)
This commit is contained in:
parent
9f4d3ddfe6
commit
3ad363e469
25
.github/workflows/ci-windows.yml
vendored
25
.github/workflows/ci-windows.yml
vendored
@ -23,26 +23,41 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-windows-gcc:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: msys2 {0}
|
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:
|
steps:
|
||||||
- uses: msys2/setup-msys2@v2
|
- uses: msys2/setup-msys2@v2
|
||||||
with:
|
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
|
- uses: actions/checkout@master
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
MINGW64: "/mingw64"
|
MINGW64: "/mingw64"
|
||||||
ARCHOPTS: "-fuse-ld=lld"
|
ARCHOPTS: "-fuse-ld=lld"
|
||||||
OVERRIDE_AR: "llvm-ar"
|
OVERRIDE_AR: "llvm-ar"
|
||||||
|
OVERRIDE_CC: ${{ matrix.cc }}
|
||||||
|
OVERRIDE_CXX: ${{ matrix.cxx }}
|
||||||
|
SUBTARGET: ${{ matrix.subtarget }}
|
||||||
TOOLS: 1
|
TOOLS: 1
|
||||||
run: make -j2
|
run: make -j2
|
||||||
- name: Validate
|
- name: Validate
|
||||||
run: ./mame -validate
|
run: ./mame* -validate
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: mame-windows-gcc-${{ github.sha }}
|
name: mame-windows-${{ matrix.compiler }}-${{ github.sha }}
|
||||||
path: mame.exe
|
path: mame*.exe
|
||||||
|
Loading…
Reference in New Issue
Block a user