summaryrefslogtreecommitdiffstats
path: root/.github/workflows/mac.yml
blob: eaf512ed7b84ca6cda652a0d5bfe3e71060becf1 (plain)
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
name: macOS build

on: [push, pull_request]

jobs:
  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