-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (71 loc) · 2.06 KB
/
rust.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: build
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
schedule:
# At 23:25 on Thursday.
- cron: "25 23 * * 4"
jobs:
test:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
toolchain:
- stable
- nightly
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --no-self-update
rustup default ${{ matrix.toolchain }}
- name: Build and test
run: cargo test
- name: Install FFMPEG
uses: FedericoCarboni/setup-ffmpeg@v3
id: setup-ffmpeg
- name: Integration tests, including roundtrip through ffmpeg and openh264
# Limit tests to bit depth 8 until ffmpeg 5.1 is available.
run: cd testbench && cargo test -- --skip mono12
no_std:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-20.04]
toolchain:
- stable
- nightly
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --no-self-update
rustup default ${{ matrix.toolchain }}
- name: install no_std target
run: rustup target add thumbv7em-none-eabihf
- name: Build for no_std
run: cargo build --no-default-features --target thumbv7em-none-eabihf
backtrace:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-20.04]
toolchain:
- nightly
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --no-self-update
rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --features backtrace