Skip to content

Prepare 4.0.0 release #127

Prepare 4.0.0 release

Prepare 4.0.0 release #127

Workflow file for this run

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