2020-11-10 23:36:07 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
name: Continuous integration
|
|
|
|
|
|
|
|
jobs:
|
2022-03-18 23:22:28 +00:00
|
|
|
Nightly:
|
2022-03-18 23:27:48 +00:00
|
|
|
name: Nightly - ASan + Bench + Docs
|
2020-11-10 23:36:07 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-18 23:16:52 +00:00
|
|
|
- name: Checkout Crate
|
2020-11-10 23:36:07 +00:00
|
|
|
uses: actions/checkout@v2
|
2022-03-18 23:24:57 +00:00
|
|
|
- name: Install clang for ASan
|
|
|
|
run: sudo apt-get install -y clang
|
2020-11-10 23:36:07 +00:00
|
|
|
- name: Checkout Toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2022-03-18 23:24:00 +00:00
|
|
|
toolchain: nightly
|
2020-11-10 23:36:07 +00:00
|
|
|
override: true
|
|
|
|
components: rust-src
|
2022-11-21 21:54:24 +00:00
|
|
|
- name: Check formatting
|
|
|
|
env:
|
|
|
|
DO_FMT: true
|
|
|
|
run: ./contrib/test.sh
|
2020-11-10 23:36:07 +00:00
|
|
|
- name: Running address sanitizer
|
|
|
|
env:
|
|
|
|
DO_ASAN: true
|
|
|
|
run: ./contrib/test.sh
|
|
|
|
- name: Running benchmarks
|
|
|
|
env:
|
|
|
|
DO_BENCH: true
|
|
|
|
run: ./contrib/test.sh
|
2022-03-18 23:27:48 +00:00
|
|
|
- name: Building docs
|
|
|
|
env:
|
|
|
|
DO_DOCS: true
|
|
|
|
run: ./contrib/test.sh
|
2020-11-10 23:36:07 +00:00
|
|
|
|
|
|
|
Tests:
|
|
|
|
name: Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-03-30 22:18:02 +00:00
|
|
|
rust: [stable, beta, nightly, 1.48.0]
|
2020-11-10 23:36:07 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout Crate
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Checkout Toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
override: true
|
|
|
|
- name: Running cargo
|
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
|
|
|
|
|
2022-03-18 23:40:19 +00:00
|
|
|
WASM:
|
|
|
|
name: WASM
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-09-14 15:46:20 +00:00
|
|
|
rust: [stable, beta, nightly] # wasm-pack doesn't support rust 1.41.1
|
2022-03-18 23:40:19 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout Crate
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- 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
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
override: true
|
|
|
|
components: rust-src
|
|
|
|
- name: Running WASM tests
|
|
|
|
env:
|
|
|
|
DO_WASM: true
|
|
|
|
run: ./contrib/test.sh
|
2022-06-10 02:49:58 +00:00
|
|
|
|
|
|
|
Clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: --features=rand-std,recovery,lowmemory,global-context --all-targets -- -D warnings
|