@@ -37,16 +37,35 @@ jobs:
37
37
# - name: prebuild for Linux (arm64)
38
38
# run: npx prebuild --runtime napi --arch arm64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --upload ${{ secrets.GITHUB_TOKEN }}
39
39
40
- package :
40
+ windows- package :
41
41
permissions :
42
42
contents : write
43
- runs-on : ${{ matrix.os }}
44
- strategy :
45
- fail-fast : false
46
- matrix :
47
- os :
48
- - macos-latest
49
- - windows-latest
43
+ runs-on : windows-latest
44
+ steps :
45
+ - uses : actions/checkout@v2
46
+ with :
47
+ lfs : true
48
+ - name : Use nodejs
49
+ uses : actions/setup-node@v1
50
+ with :
51
+ node-version : 16.13.0
52
+
53
+ - name : npm install
54
+ run : npm install
55
+ env :
56
+ PREBUILD : true
57
+
58
+ - name : install Windows dependencies
59
+ run : node ./install_ffmpeg.js
60
+
61
+ - name : prebuild for Windows
62
+ run : npx prebuild --runtime napi --include-regex '.node|.dll|.exe' --verbose --upload ${{ secrets.GITHUB_TOKEN }}
63
+ shell : bash
64
+
65
+ macos-package :
66
+ permissions :
67
+ contents : write
68
+ runs-on : macos-latest
50
69
steps :
51
70
- uses : actions/checkout@v2
52
71
with :
59
78
60
79
- name : install Mac build dependencies (brew)
61
80
run : |
62
- brew install nasm pkg-config
63
- python3 -m pip install packaging setuptools
64
- if : ${{ runner.os == 'macOS'}}
81
+ brew install nasm pkg-config python-packaging python-setuptools
65
82
66
83
- name : npm install
67
84
run : npm install
@@ -70,29 +87,15 @@ jobs:
70
87
71
88
- name : install Mac dependencies (shared release x64)
72
89
run : node ./install_ffmpeg.js --arch x64
73
- if : ${{ runner.os == 'macOS'}}
74
90
75
91
- name : install Mac dependencies (shared release arm64)
76
92
run : node ./install_ffmpeg.js --arch arm64
77
- if : ${{ runner.os == 'macOS'}}
78
-
79
- - name : install Windows dependencies
80
- run : node ./install_ffmpeg.js
81
- if : ${{ runner.os == 'Windows'}}
82
93
83
94
- name : prebuild Release for macOS (x64)
84
95
run : npx prebuild --runtime napi --arch x64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --verbose --upload ${{ secrets.GITHUB_TOKEN }}
85
- if : ${{ runner.os == 'macOS'}}
86
96
87
97
- name : clean build directory for cross-compiling
88
98
run : rm ./build/Release/*.dylib || true
89
- if : ${{ runner.os == 'macOS'}}
90
99
91
100
- name : prebuild Release for macOS (arm64)
92
101
run : npx prebuild --runtime napi --arch arm64 --include-regex '(\.node|\.dylib|ffmpeg|ffprobe)$' --verbose --upload ${{ secrets.GITHUB_TOKEN }}
93
- if : ${{ runner.os == 'macOS'}}
94
-
95
- - name : prebuild for Windows
96
- run : npx prebuild --runtime napi --include-regex '.node|.dll|.exe' --verbose --upload ${{ secrets.GITHUB_TOKEN }}
97
- shell : bash
98
- if : ${{ runner.os == 'Windows'}}
0 commit comments