-
Notifications
You must be signed in to change notification settings - Fork 108
60 lines (52 loc) · 1.99 KB
/
main.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
54
55
56
57
58
59
60
name: Build and Release
on:
push:
branches: [release]
permissions:
contents: write
jobs:
build_and_release:
runs-on: ${{ matrix.os }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
os: [macos-latest, macos-13, ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 18
- name: Linux Build
if: matrix.os == 'ubuntu-latest'
run: |
sudo snap install snapcraft --classic
wget "https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_linux_amd64"
mv ffmpeg_linux_amd64 ffmpeg
chmod +x ffmpeg
npm i
npx electron-builder -l --publish=always
npm run gh-linux
- name: Macos Intel Build
if: matrix.os == 'macos-13'
run: |
curl https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_amd64 -o ffmpeg
chmod +x ffmpeg
npm i
npm run gh-mac
- name: Macos Arm Build
if: matrix.os == 'macos-latest'
run: |
curl https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_arm64 -o ffmpeg
chmod +x ffmpeg
npm i
npm run gh-mac
- name: Windows Build
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest -Uri "https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg.exe" -OutFile ffmpeg.exe
npm i
npm run gh-windows