blob: bdd2fe8516671157625d8e3567ae06dd8fa3ad5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
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
|