mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
name: CI (Windows)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '3rdparty/**'
|
|
- 'scripts/**'
|
|
- 'src/**'
|
|
- 'COPYING'
|
|
- 'makefile'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '3rdparty/**'
|
|
- 'scripts/**'
|
|
- 'src/**'
|
|
- 'COPYING'
|
|
- 'makefile'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
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
|
|
executable: mame
|
|
- compiler: clang
|
|
cc: clang
|
|
cxx: clang++
|
|
subtarget: tiny
|
|
executable: mametiny
|
|
steps:
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
install: git make mingw-w64-x86_64-${{ matrix.compiler }} mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-llvm mingw-w64-x86_64-libc++
|
|
- uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Build
|
|
env:
|
|
MINGW64: "/mingw64"
|
|
OVERRIDE_AR: "llvm-ar"
|
|
OVERRIDE_CC: ${{ matrix.cc }}
|
|
OVERRIDE_CXX: ${{ matrix.cxx }}
|
|
ARCHOPTS: "-fuse-ld=lld"
|
|
SUBTARGET: ${{ matrix.subtarget }}
|
|
TOOLS: 1
|
|
run: make -j3
|
|
- name: Validate
|
|
run: ./${{ matrix.executable }}.exe -validate
|
|
- uses: actions/upload-artifact@main
|
|
with:
|
|
name: ${{ matrix.executable }}-windows-${{ matrix.compiler }}-${{ github.sha }}
|
|
path: |
|
|
${{ matrix.executable }}.exe
|
|
chdman.exe
|
|
unidasm.exe
|
|
if-no-files-found: error
|