Skip to content

Bump softprops/action-gh-release from 2 to 3 (#3) #70

Bump softprops/action-gh-release from 2 to 3 (#3)

Bump softprops/action-gh-release from 2 to 3 (#3) #70

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: install ffmpeg
# media-io (stills/media-player/scaler) shells out to ffmpeg at
# runtime and its integration tests run it for real — explicit
# install rather than relying on ubuntu-latest happening to bundle
# it, so CI doesn't silently start failing if that ever changes.
run: sudo apt-get update && sudo apt-get install -y ffmpeg
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all-targets -- -D warnings
- name: test
# No --all/--workspace: that overrides [workspace] default-members
# and would try to build omt-io too, which links libomt and needs
# OMT_LIB_DIR pointed at an SDK this runner does not have.
#
# ndi-io IS a default member and builds here: it loads the NDI runtime
# with dlopen rather than linking it, so nothing is needed at build
# time. Its tests skip themselves when no runtime is present — verified
# by running them with both local copies of libndi denied, where they
# print "no NDI runtime installed — skipping" and pass — so this runner
# exercises the envelope and struct-layout tests and skips the rest.
run: cargo test