-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.11 KB
/
test.yaml
File metadata and controls
41 lines (41 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: unit tests
on:
workflow_dispatch:
push:
paths:
- '**/*.rs'
- '*.toml'
- '*.lock'
pull_request:
paths:
- '**/*.rs'
- '*.toml'
- '*.lock'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install libav libraries
uses: tecolicom/actions-use-apt-tools@v1
with:
tools: libavcodec-dev libavformat-dev libswscale-dev libavfilter-dev libavdevice-dev libavutil-dev yasm
method: timestamp
- name: Setup FFmpeg
uses: AnimMouse/setup-ffmpeg@v1
with:
version: 7.1
- name: Checkout code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
key: stable
- uses: taiki-e/install-action@nextest
- name: Test
run: cargo nextest run --config-file .cargo/nextest.toml --profile ci
# - name: Install cargo-careful
# run: cargo install cargo-careful
# - name: Run cargo-careful
# run: cargo +nightly careful test --target x86_64-unknown-linux-gnu