Skip to content

Separate builds for mac x64 and arm and add arch info to filename #37

Separate builds for mac x64 and arm and add arch info to filename

Separate builds for mac x64 and arm and add arch info to filename #37

Workflow file for this run

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