forked from HandBrake/HandBrake
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 892 Bytes
/
mac.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
name: macOS build
on: [push, pull_request]
jobs:
handle_forks:
name: Forked Repo
runs-on: ubuntu-latest
if: github.repository != 'HandBrake/HandBrake'
steps:
- name: Print Warning
run: |
echo "Builds are disabled for forked repositories."
build:
name: Build on macOS
runs-on: macOS-latest
if: github.repository == 'HandBrake/HandBrake'
steps:
- uses: actions/checkout@master
- name: Toolchain Cache
id: mac-toolchain
uses: actions/cache@v1
with:
path: /usr/local
key: mac-toolchain
- name: Setup Environment
if: steps.mac-toolchain.outputs.cache-hit != 'true'
run: |
scripts/mac-toolchain-build /usr/local
- name: Build HandBrake
run: |
./configure --launch-jobs=$(sysctl -n hw.ncpu) --launch
cd build
make pkg.create