Release 0.6.0 #38
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: Continuous integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
- 1.64.0 # MSRV | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Pin versions for MSRV | |
if: "${{ matrix.rust == '1.64.0' }}" | |
run: | | |
cargo update -p regex --precise 1.8.4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
cross_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
# 64-bit, big-endian | |
- rust: stable | |
target: s390x-unknown-linux-gnu | |
# 32-bit, little-endian | |
- rust: stable | |
target: i686-unknown-linux-gnu | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
- name: Install cross | |
run: cargo install cross -f | |
- name: Build | |
run: cross build --verbose --target=${{ matrix.target }} | |
- name: Run tests | |
run: cross test --verbose --target=${{ matrix.target }} | |
format: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt | |
- name: Rustfmt | |
run: cargo fmt -- --check | |
coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Install tarpaulin | |
uses: taiki-e/cache-cargo-install-action@v2 | |
with: | |
tool: cargo-tarpaulin | |
- name: Generate code coverage | |
run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
fail_ci_if_error: true |