forked from mamedev/mame
-
Notifications
You must be signed in to change notification settings - Fork 24
74 lines (70 loc) · 1.93 KB
/
ci-linux.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI (Linux)
on:
push:
paths:
- '.github/workflows/**'
- '3rdparty/**'
- 'hash/**'
- 'scripts/**'
- 'src/**'
- 'COPYING'
- 'makefile'
pull_request:
paths:
- '.github/workflows/**'
- '3rdparty/**'
- 'hash/**'
- 'scripts/**'
- 'src/**'
- 'COPYING'
- 'makefile'
permissions:
contents: read
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc, clang]
include:
- compiler: gcc
cc: gcc
cxx: g++
archopts: -U_FORTIFY_SOURCE
subtarget: tiny
executable: mametiny
- compiler: clang
cc: clang
cxx: clang++
subtarget: mame
executable: mame
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev libasound2-dev libxinerama-dev libxi-dev qtbase5-dev qtbase5-dev-tools
- name: Install clang
if: matrix.compiler == 'clang'
run: sudo apt-get install -y clang
- name: Build
env:
OVERRIDE_CC: ${{ matrix.cc }}
OVERRIDE_CXX: ${{ matrix.cxx }}
ARCHOPTS: ${{ matrix.archopts }}
SUBTARGET: ${{ matrix.subtarget }}
TOOLS: 1
run: make -j2
- name: Validate
run: ./${{ matrix.executable }} -validate
- name: Reconcile driver list
run: ./${{ matrix.executable }} -listxml | python scripts/build/makedep.py reconcilelist -l src/mame/${{ matrix.subtarget }}.lst -
- name: ORM check
run: python scripts/minimaws/minimaws.py load --executable ./${{ matrix.executable }} --softwarepath hash
- uses: actions/upload-artifact@master
with:
name: ${{ matrix.executable }}-linux-${{ matrix.compiler }}-${{ github.sha }}
path: |
${{ matrix.executable }}
chdman
unidasm