-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (52 loc) · 1.59 KB
/
build.yml
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
on:
push:
branches:
- main
pull_request:
name: Install and Test
env:
FORCE_COLOR: 1
jobs:
build:
name: Build on macOS M1
runs-on: macos-14
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install deps
run: HOMEBREW_INSTALL_FROM_API=1 brew install yasm nasm pkg-config cmake make meson ninja libtool autoconf automake
- run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- run: rm /opt/homebrew/opt/libx11/lib/libX11.6.dylib
- run: node clean.mjs
- run: node compile-ffmpeg.mjs
- run: node generate-bindings.mjs
- run: node zip.mjs
- run: node test-ffmpeg.mjs
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: aarch64-apple-darwin.gz
path: ffmpeg.tar.gz
build-macos-x64:
name: Build on macOS x64
runs-on: macos-12
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install deps
run: HOMEBREW_INSTALL_FROM_API=1 brew install yasm nasm pkg-config cmake make meson ninja libtool autoconf automake
- run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- run: node clean.mjs
- run: node compile-ffmpeg.mjs
- run: node generate-bindings.mjs
- run: node zip.mjs
- run: node test-ffmpeg.mjs
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: x86_64-apple-darwin.gz
path: ffmpeg.tar.gz