mame/.github/workflows/ci-windows.yml
Dirk Best 3eaf1be30c
Create GitHub Actions for CI (#7335)
This is intended as a replacement for AppVeyor and parts of TravisCI. It will create full builds of MAME (including tools) for the following platforms:

- Linux (GCC and Clang)
- macOS (Clang)
- Windows (GCC and MSVC 2019)

It will also upload the resulting executable as artifact so that it can be used for regression testing.

This commit also removes the unused TeaCI drone files.
2020-10-21 22:42:17 +11:00

59 lines
1.5 KiB
YAML

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:
update: true
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-lld
- uses: actions/checkout@master
- name: Build
env:
MINGW64: "/mingw64"
ARCHOPTS: "-fuse-ld=lld"
TOOLS: 1
run: make -j2
- name: Validate
run: ./mame64 -validate
- uses: actions/upload-artifact@master
with:
name: mame64-windows-gcc-${{ github.sha }}
path: mame64.exe
build-windows-msvc:
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python
- uses: actions/checkout@master
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.1
- name: Generate build files
shell: msys2 {0}
env:
MINGW64: "/mingw64"
TOOLS: 1
run: make -j2 vs2019
- name: Build
shell: cmd
env:
PreferredToolArchitecture: x64
run: msbuild "build\projects\windows\mame\vs2019\mame.sln" /m:2 /p:ContinueOnError=false /p:StopOnFirstFailure=true /property:Configuration=Release /property:Platform=x64
- name: Validate
shell: cmd
run: mame64 -validate
- uses: actions/upload-artifact@master
with:
name: mame64-windows-msvc-${{ github.sha }}
path: mame64.exe