Skip to content

CI

CI #151

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
schedule:
- cron: '45 4 * * 3'
env:
RUSTFLAGS: -Dwarnings
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo test --features diff
# Use release mode, otherwise the const table
# used with the fast feature leads to very slow tests.
- run: cargo test --release --features fast
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --tests
- run: cargo clippy --tests --features diff
- run: cargo clippy --tests --features fast
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
bigendian:
name: Test big-endian arch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: s390x-unknown-linux-gnu
- run: cargo test
- run: cargo test --features diff
# Use release mode, otherwise the const table
# used with the fast feature leads to very slow tests.
- run: cargo test --release --features fast