-
Notifications
You must be signed in to change notification settings - Fork 34
53 lines (50 loc) · 1.56 KB
/
macos-dylib.yaml
File metadata and controls
53 lines (50 loc) · 1.56 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
name: macos-dylib
on:
push:
tags: [ macos-dylib ]
branches: [ macos, mpv ]
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- { tag: Silicon, arch: arm64 }
- { tag: Intel, arch: x86_64 }
tag: [ Silicon, Intel ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: scripts
- name: Remove stray upstream python binary symlinks under /usr/local
run: |
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete -print
brew unlink python && brew link --overwrite python
- name: Install dependency
run: brew reinstall ninja nasm meson
- name: Build dylib
run: make -C scripts/macos OSX_ARCH=${{ matrix.arch }} TMPDIR=${{ runner.temp }} PREFIX=${{ runner.temp }}
- name: Build packages
run: |
tar zcf dylib-ffmpeg8-mpv41-${{ matrix.tag }}.tar.gz --exclude=lib/*.a \
-C ${{ runner.temp }} include lib
- name: Archive Build Logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.tag }}
path: |
build-ffmpeg/ffbuild
build-*/meson-logs
- name: Upload packages
uses: softprops/action-gh-release@v2
with:
name: macos-dylib
tag_name: macos-dylib
prerelease: true
files: dylib-*.tar.gz
body: |
