Skip to content

Package native installers with bundled ffmpeg #27

Package native installers with bundled ffmpeg

Package native installers with bundled ffmpeg #27

name: Build and Release
on:
push:
branches:
- main
- dev
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
artifact_name: VideoMergingTool-windows-x64
package_path: dist/installer/VideoMergingTool-Setup.exe
- os: macos-latest
artifact_name: VideoMergingTool-macos-arm64
package_path: dist/VideoMergingTool.dmg
- os: ubuntu-latest
artifact_name: VideoMergingTool-linux-x64
package_path: dist/VideoMergingTool
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build dependencies
run: python -m pip install -r requirements-build.txt
- name: Install Inno Setup on Windows
if: runner.os == 'Windows'
run: choco install innosetup --no-progress -y
- name: Build executable on Windows
if: runner.os == 'Windows'
shell: pwsh
run: .\scripts\build_windows.ps1
- name: Build app on macOS
if: runner.os == 'macOS'
run: bash scripts/build_local.sh
- name: Build executable on Linux
if: runner.os == 'Linux'
run: bash scripts/build_local.sh
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: ${{ matrix.package_path }}
if-no-files-found: error
- name: Upload release asset
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.package_path }}
generate_release_notes: true