Prepare 4.0.0 release #127
Workflow file for this run
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: CI | |
on: | |
# Only run when merging to master, or open/synchronize/reopen a PR. | |
push: | |
branches: | |
- master | |
- staging | |
- trying | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
rust: ["stable", "beta"] | |
build_flags: ["", "--cfg ammonia_unstable"] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set toolchain | |
run: | | |
rustup set profile minimal | |
rustup override set ${{ matrix.rust }} | |
- name: Test | |
run: cargo test | |
env: | |
RUSTFLAGS: ${{ matrix.build_flags }} | |
msrv: | |
name: MSRV | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
build_flags: ["", "--cfg ammonia_unstable"] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set toolchain | |
run: | | |
rustup set profile minimal | |
rustup override set 1.60.0 | |
- name: Check | |
run: cargo check --lib --all-features | |
env: | |
RUSTFLAGS: ${{ matrix.build_flags }} | |
ci-success: | |
name: ci | |
if: ${{ success() }} | |
needs: | |
- test | |
- msrv | |
runs-on: ubuntu-latest | |
steps: | |
- name: CI succeeded | |
run: exit 0 |