blob: 6cdd9894b154c0ddd3a7da8ceb058d4a54778c38 (
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
|
name: macOS build
on: [push, pull_request]
jobs:
build:
name: Build on macOS
runs-on: macOS-latest
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@v1
with:
name: HandBrake-macos
path: ./build/pkg
- name: Tidy up past artifacts
uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 3days
|