bugfixes, +2 features #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |