Skip to content

Add local video processing and tagging scripts #42

Add local video processing and tagging scripts

Add local video processing and tagging scripts #42

Workflow file for this run

name: Build Linux Binary
on:
push:
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build release binary
run: cargo build --release --target x86_64-unknown-linux-gnu
- name: Upload Linux binary artifact
uses: actions/upload-artifact@v4
with:
name: ffmpeg-gpc-linux
path: target/x86_64-unknown-linux-gnu/release/ffmpeg-gpc
if-no-files-found: error
release:
needs: build-linux
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
steps:
- name: Download Linux binary
uses: actions/download-artifact@v4
with:
name: ffmpeg-gpc-linux
path: ./artifacts
- name: Create Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./artifacts/ffmpeg-gpc
generate_release_notes: true