2021-07-07 01:23:04 +00:00
|
|
|
name: 🍎 MacOS Builds
|
2020-09-20 02:40:57 +00:00
|
|
|
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
|
|
# events but only for the master branch
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
2021-05-07 13:45:52 +00:00
|
|
|
- '**/*.md'
|
|
|
|
- '**/*.bat'
|
|
|
|
- '**/*.cmd'
|
|
|
|
- '**/*.props'
|
|
|
|
- '**/*.sln'
|
|
|
|
- '.clang-format'
|
|
|
|
- '.codacy.yaml'
|
|
|
|
- '.github/*'
|
|
|
|
- '.github/workflows/lint-gamedb.yml'
|
|
|
|
- '.github/workflows/linux-workflow.yml'
|
|
|
|
- '.github/workflows/pr-triage.yml'
|
|
|
|
- '.github/workflows/scripts/windows/**'
|
|
|
|
- '.github/workflows/scripts/validation/**'
|
|
|
|
- '.github/workflows/windows-workflow.yml'
|
|
|
|
- '.gitignore'
|
|
|
|
- 'bin/PCSX2_keys.ini.default'
|
|
|
|
- 'build.sh'
|
|
|
|
- 'buildbot.xml'
|
|
|
|
- 'debian-packager/**'
|
|
|
|
- 'pcsx2/CDVD/Windows/**'
|
|
|
|
- 'pcsx2/DEV9/Win32/**'
|
|
|
|
- 'pcsx2/PAD/Windows/**'
|
|
|
|
- 'pcsx2/SPU2/Windows/**'
|
|
|
|
- 'pcsx2/USB/Win32/**'
|
|
|
|
- 'pcsx2/windows/**'
|
2020-09-20 02:40:57 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
2021-05-07 13:45:52 +00:00
|
|
|
- '**/*.md'
|
|
|
|
- '**/*.bat'
|
|
|
|
- '**/*.cmd'
|
|
|
|
- '**/*.props'
|
|
|
|
- '**/*.sln'
|
|
|
|
- '.clang-format'
|
|
|
|
- '.codacy.yaml'
|
|
|
|
- '.github/*'
|
|
|
|
- '.github/workflows/lint-gamedb.yml'
|
|
|
|
- '.github/workflows/linux-workflow.yml'
|
|
|
|
- '.github/workflows/pr-triage.yml'
|
|
|
|
- '.github/workflows/scripts/windows/**'
|
|
|
|
- '.github/workflows/scripts/validation/**'
|
|
|
|
- '.github/workflows/windows-workflow.yml'
|
|
|
|
- '.gitignore'
|
|
|
|
- 'bin/PCSX2_keys.ini.default'
|
|
|
|
- 'build.sh'
|
|
|
|
- 'buildbot.xml'
|
|
|
|
- 'debian-packager/**'
|
|
|
|
- 'pcsx2/CDVD/Windows/**'
|
|
|
|
- 'pcsx2/DEV9/Win32/**'
|
|
|
|
- 'pcsx2/PAD/Windows/**'
|
|
|
|
- 'pcsx2/SPU2/Windows/**'
|
|
|
|
- 'pcsx2/USB/Win32/**'
|
|
|
|
- 'pcsx2/windows/**'
|
2020-09-20 02:40:57 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
# Prevent one build from failing everything (although maybe those should be included as experimental builds instead)
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-10.15]
|
|
|
|
platform: [x64]
|
|
|
|
experimental: [false]
|
|
|
|
|
2021-07-07 01:23:04 +00:00
|
|
|
name: ${{ matrix.platform }}
|
2020-09-20 02:40:57 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
continue-on-error: ${{ matrix.experimental }}
|
|
|
|
# Set some sort of timeout in the event of run-away builds. We are limited on concurrent jobs so, get rid of them.
|
|
|
|
timeout-minutes: 30
|
|
|
|
|
|
|
|
steps:
|
|
|
|
# NOTE - useful for debugging
|
|
|
|
# - name: Dump GitHub context
|
|
|
|
# env:
|
|
|
|
# GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
# run: |
|
|
|
|
# echo "$GITHUB_CONTEXT"
|
|
|
|
# echo ${{ github.event.pull_request.title }}
|
|
|
|
|
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Checkout Submodules
|
2021-05-07 13:45:52 +00:00
|
|
|
run: git submodule update --init --recursive -j $(getconf _NPROCESSORS_ONLN)
|
2020-09-20 02:40:57 +00:00
|
|
|
|
|
|
|
- name: Install Packages
|
|
|
|
env:
|
|
|
|
PLATFORM: ${{ matrix.platform }}
|
2021-05-07 13:45:52 +00:00
|
|
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
|
|
|
HOMEBREW_NO_ANALYTICS: 1
|
2020-09-20 02:40:57 +00:00
|
|
|
run: |
|
2021-04-12 20:04:05 +00:00
|
|
|
brew update
|
2020-09-20 02:40:57 +00:00
|
|
|
brew install sound-touch portaudio wxmac gtk+3 sdl2 libsamplerate
|
|
|
|
|
|
|
|
- name: Generate CMake Files
|
|
|
|
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_PO=FALSE -B build .
|
|
|
|
|
|
|
|
- name: Build PCSX2
|
2021-05-07 13:45:52 +00:00
|
|
|
working-directory: build
|
|
|
|
run: make -j$(getconf _NPROCESSORS_ONLN) # macOS doesn't use make install
|