CI: test with commited lock files #1054
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
on: [push, pull_request] | |
name: Continuous integration | |
jobs: | |
Stable: | |
name: Test - stable toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
# https://github.com/dtolnay/rust-toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Running test script | |
env: | |
DO_LINT: true | |
DO_DOCS: true | |
DO_FEATURE_MATRIX: true | |
run: ./contrib/test.sh | |
Beta: | |
name: Test - beta toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@beta | |
- name: Running test script | |
run: ./contrib/test.sh | |
Nightly: | |
name: Test - nightly toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Install src | |
run: rustup component add rust-src | |
- name: Running test script | |
env: | |
DO_FMT: true | |
DO_BENCH: true | |
DO_DOCSRS: true | |
DO_ASAN: true | |
run: ./contrib/test.sh | |
MSRV: | |
name: Test - 1.48.0 toolchain | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@1.48.0 | |
- name: Running test script | |
env: | |
DO_FEATURE_MATRIX: true | |
run: ./contrib/test.sh | |
Arch32bit: | |
name: Test 32-bit version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Add architecture i386 | |
run: sudo dpkg --add-architecture i386 | |
- name: Install i686 gcc | |
run: sudo apt-get update -y && sudo apt-get install -y gcc-multilib | |
- name: Install target | |
run: rustup target add i686-unknown-linux-gnu | |
- name: Run test on i686 | |
run: cargo test --target i686-unknown-linux-gnu | |
Cross: | |
name: Cross test | |
if: ${{ !github.event.act }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install target | |
run: rustup target add s390x-unknown-linux-gnu | |
- name: install cross | |
run: cargo install cross --locked | |
- name: run cross test | |
run: cross test --target s390x-unknown-linux-gnu | |
WASM: | |
name: WASM | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Crate | |
uses: actions/checkout@v3 | |
- name: Install clang | |
run: sudo apt-get install -y clang | |
- name: Checkout Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Running WASM tests | |
env: | |
DO_WASM: true | |
# We do not control the cargo commands so cannot us --locked to lock the manifest. | |
run: ./contrib/_test.sh |