Skip to content

bugfixes, +2 features #10

bugfixes, +2 features

bugfixes, +2 features #10

Workflow file for this run

name: Upload release artifact
on:
push:
tags:
- "v*"
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
build-macos:
name: Build macOS binary
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install FFmpeg
run: brew install ffmpeg
- name: Install yt-dlp
run: brew install yt-dlp
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
# Reuse dependencies
- name: Cache Cargo
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --locked
- name: Run tests
run: cargo test --locked
# Current tool for cross-platform packaging
- name: Install cargo-packager
run: cargo install cargo-packager --locked
# This uses the metadata already configured in Cargo.toml.
# Building step is already included in Cargo.toml's metadata section
- name: Build package
run: cargo-packager --release --formats dmg
# Create a draft GitHub Release for the tag, generate notes from commits/PRs,
# and attach the generated DMG file.
- name: Upload release artifact
uses: softprops/action-gh-release@v3
with:
draft: true
generate_release_notes: true
files: target/release/*.dmg