2020-11-10 23:36:07 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
name: Continuous integration
|
|
|
|
|
|
|
|
jobs:
|
2023-04-18 06:02:50 +00:00
|
|
|
Stable:
|
|
|
|
name: Test - stable toolchain
|
2020-11-10 23:36:07 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-18 06:02:50 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
2020-11-10 23:36:07 +00:00
|
|
|
steps:
|
2022-03-18 23:16:52 +00:00
|
|
|
- name: Checkout Crate
|
2023-04-18 06:02:50 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-11-10 23:36:07 +00:00
|
|
|
- name: Checkout Toolchain
|
2023-04-18 06:02:50 +00:00
|
|
|
# https://github.com/dtolnay/rust-toolchain
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Running test script
|
2022-11-21 21:54:24 +00:00
|
|
|
env:
|
2023-04-18 06:02:50 +00:00
|
|
|
DO_LINT: true
|
|
|
|
DO_DOCS: true
|
|
|
|
DO_FEATURE_MATRIX: true
|
2022-11-21 21:54:24 +00:00
|
|
|
run: ./contrib/test.sh
|
2023-04-18 06:02:50 +00:00
|
|
|
|
|
|
|
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
|
2020-11-10 23:36:07 +00:00
|
|
|
run: ./contrib/test.sh
|
2023-04-18 06:02:50 +00:00
|
|
|
|
|
|
|
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
|
2020-11-10 23:36:07 +00:00
|
|
|
env:
|
2023-04-18 06:02:50 +00:00
|
|
|
DO_FMT: true
|
2020-11-10 23:36:07 +00:00
|
|
|
DO_BENCH: true
|
2023-04-18 06:02:50 +00:00
|
|
|
DO_DOCSRS: true
|
|
|
|
DO_ASAN: true
|
2022-03-18 23:27:48 +00:00
|
|
|
run: ./contrib/test.sh
|
2020-11-10 23:36:07 +00:00
|
|
|
|
2023-04-18 06:02:50 +00:00
|
|
|
MSRV:
|
|
|
|
name: Test - 1.48.0 toolchain
|
2020-11-10 23:36:07 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
2023-04-18 06:02:50 +00:00
|
|
|
fail-fast: false
|
2020-11-10 23:36:07 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout Crate
|
2023-04-18 06:02:50 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-11-10 23:36:07 +00:00
|
|
|
- name: Checkout Toolchain
|
2023-04-18 06:02:50 +00:00
|
|
|
uses: dtolnay/rust-toolchain@1.48.0
|
|
|
|
- name: Running test script
|
2022-03-18 23:40:19 +00:00
|
|
|
env:
|
|
|
|
DO_FEATURE_MATRIX: true
|
2020-11-10 23:36:07 +00:00
|
|
|
run: ./contrib/test.sh
|
|
|
|
|
2023-04-18 06:02:50 +00:00
|
|
|
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
|
|
|
|
|
2022-03-18 23:40:19 +00:00
|
|
|
WASM:
|
|
|
|
name: WASM
|
|
|
|
runs-on: ubuntu-latest
|
2023-04-18 23:27:04 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain: [stable, beta, nightly, 1.48.0]
|
2022-03-18 23:40:19 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout Crate
|
2023-04-18 06:02:50 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-03-18 23:40:19 +00:00
|
|
|
- name: Install clang
|
2022-11-02 23:29:23 +00:00
|
|
|
run: sudo apt-get install -y clang
|
2022-03-18 23:40:19 +00:00
|
|
|
- name: Checkout Toolchain
|
2023-04-18 23:27:04 +00:00
|
|
|
uses: dtolnay/rust-toolchain@${{ matrix.toolchain }}
|
2022-03-18 23:40:19 +00:00
|
|
|
- name: Running WASM tests
|
|
|
|
env:
|
|
|
|
DO_WASM: true
|
|
|
|
run: ./contrib/test.sh
|