forked from m154k1/mpv-build-macOS
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (61 loc) · 1.58 KB
/
build.yml
File metadata and controls
73 lines (61 loc) · 1.58 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
name: Build & Upload Artifact
on:
workflow_dispatch:
push:
branches:
- master
paths:
- ".github/workflows/build.yml"
- ".env"
- "build-*"
- "fetch"
jobs:
build:
runs-on: macos-26
permissions:
contents: read
id-token: write
attestations: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Select Xcode
run: |
sudo xcode-select -s /Applications/Xcode_26.4.app
xcodebuild -version
- name: Create Stow Directory
run: |
sudo mkdir -p /opt/local
sudo chown "$USER":admin /opt/local
mkdir -p /opt/local/stow
- name: Install Dependencies
run: |
brew update -q
xargs brew install -q --formula < homebrew/build-deps.txt
- name: Fetch Sources
run: ./fetch all
- name: Build & Install
run: ./build-all --bundle
env:
MACOSX_DEPLOYMENT_TARGET: 26.4
- name: Print Summary
run: |
{
echo '### mpv'
echo '```'
/opt/local/bin/mpv --version
echo '```'
} >> "${GITHUB_STEP_SUMMARY}"
- name: Upload Artifact
id: upload
uses: actions/upload-artifact@v7
with:
path: mpv.tar.gz
if-no-files-found: error
archive: false
- name: Attest Artifact
uses: actions/attest-build-provenance@v4
with:
subject-name: mpv.tar.gz
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}