forked from HandBrake/HandBrake
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.35 KB
/
mac.yml
File metadata and controls
58 lines (48 loc) · 1.35 KB
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
54
55
56
57
58
name: macOS build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Toolchain Cache
id: mac-toolchain
uses: actions/cache@v3
with:
path: ~/mac-toolchain
key: mac-toolchain
- name: Cargo-C Toolchain Cache
id: mac-cargo-c-toolchain
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/cargo-capi
~/.cargo/bin/cargo-cbuild
~/.cargo/bin/cargo-cinstall
key: mac-cargo-c-toolchain
- name: Setup Environment
run: |
echo ~/mac-toolchain/bin >> $GITHUB_PATH
rustup target add aarch64-apple-darwin
- name: Setup Toolchain
if: steps.mac-toolchain.outputs.cache-hit != 'true'
run: |
scripts/mac-toolchain-build ~/mac-toolchain
- name: Setup Cargo-C Toolchain
if: steps.mac-cargo-c-toolchain.outputs.cache-hit != 'true'
run: |
cargo install cargo-c
- name: Build HandBrake
run: |
./configure
cd build
make ub && make pkg.create
- name: Upload Assets
uses: actions/upload-artifact@v3
with:
name: HandBrake-macos
path: ./build/pkg