mirror of
https://github.com/holub/mame
synced 2025-04-10 02:28:19 +03:00
48 lines
861 B
YAML
48 lines
861 B
YAML
name: CI (macOS)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '3rdparty/**'
|
|
- 'scripts/**'
|
|
- 'src/**'
|
|
- 'COPYING'
|
|
- 'makefile'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '3rdparty/**'
|
|
- 'scripts/**'
|
|
- 'src/**'
|
|
- 'COPYING'
|
|
- 'makefile'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-macos:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 0
|
|
- 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@main
|
|
with:
|
|
name: mame-macos-${{ github.sha }}
|
|
path: |
|
|
mame
|
|
chdman
|
|
unidasm
|
|
if-no-files-found: error
|