summaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/ci-macos.yml
blob: 0e08102bd1e7beb4868342958cd1a388c81d1c44 (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
name: CI (macOS)

on:
  push:
    paths:
    - '.github/**'
    - '3rdparty/**'
    - 'scripts/**'
    - 'src/**'
    - 'COPYING'
    - 'makefile'
  pull_request:
    paths:
    - '.github/**'
    - '3rdparty/**'
    - 'scripts/**'
    - 'src/**'
    - 'COPYING'
    - 'makefile'

permissions:
  contents: read

jobs:

  build-macos:
    runs-on: macOS-latest
    steps:
    - uses: actions/checkout@master
    - name: Install dependencies
      run: brew install python3 sdl2
    - name: Build
      env:
        USE_LIBSDL: 1
        TOOLS: 1
      run: make -j2
    - name: Validate
      run: ./mame -validate
    - uses: actions/upload-artifact@master
      with:
        name: mame-macos-${{ github.sha }}
        path: |
          mame
          chdman
          unidasm