Skip to content

Commit

Permalink
ci: consolidate into one workflow (#74)
Browse files Browse the repository at this point in the history
* ci: consolidate into one workflow
* chore: update ci badge in readme
  • Loading branch information
nathanbabcock authored Jan 13, 2025
1 parent 321e31a commit 69bdc30
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 110 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-13
- macos-14 # Mac M1 (ARM64)
steps:
- uses: actions/checkout@v4

- name: Download FFmpeg
run: cargo run --example download_ffmpeg -- ../deps

- name: Build
run: cargo build --verbose

- name: Check without default features
run: cargo check --no-default-features

- name: Run tests
run: cargo test --all-targets --all-features --examples --verbose
27 changes: 0 additions & 27 deletions .github/workflows/mac-m1.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/mac.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/ubuntu.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/windows.yml

This file was deleted.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# FFmpeg Sidecar 🏍

[Github](https://github.com/nathanbabcock/ffmpeg-sidecar) |
[Crates.io](https://crates.io/crates/ffmpeg-sidecar) |
[Docs.rs](https://docs.rs/ffmpeg-sidecar)
[Github](https://github.com/nathanbabcock/ffmpeg-sidecar)
[Crates.io](https://crates.io/crates/ffmpeg-sidecar)
[Docs.rs](https://docs.rs/ffmpeg-sidecar)
[<img src="https://github.com/nathanbabcock/ffmpeg-sidecar/actions/workflows/ci.yml/badge.svg" align="center" alt="Github Actions">](https://github.com/nathanbabcock/ffmpeg-sidecar/actions/workflows/ci.yml)

> Wrap a standalone FFmpeg binary in an intuitive Iterator interface.
Expand Down

0 comments on commit 69bdc30

Please sign in to comment.