build #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
if: runner.os != 'macOS' | |
uses: FedericoCarboni/setup-ffmpeg@v3 | |
- name: Install FFMPEG (macOS) | |
# See https://github.com/federicocarboni/setup-ffmpeg/issues/21 | |
if: runner.os == 'macOS' | |
run: brew install ffmpeg | |
- name: Integration tests, including roundtrip through ffmpeg and openh264 | |
run: cd testbench && cargo test | |
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 |