blob: a4e6135703546f83cb30ce2a1a0b6ba325ed6018 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
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
- name: Upload Assets
uses: actions/upload-artifact@v2
with:
name: HandBrake-macos
path: ./build/pkg
- name: Tidy up past artifacts
uses: kolpav/purge-artifacts-action@v1
if: github.repository == 'HandBrake/HandBrake'
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 3days
|