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

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

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