2021-12-30 00:14:23 +00:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install libunwind-dev
|
|
|
|
run: sudo apt-get install -y libunwind-dev
|
|
|
|
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install nightly toolchain
|
2023-07-05 15:38:06 +00:00
|
|
|
uses: dtolnay/rust-toolchain@nightly
|
2021-12-30 00:14:23 +00:00
|
|
|
|
|
|
|
- name: Run cargo check
|
2023-07-05 15:38:06 +00:00
|
|
|
run: cargo check --all-features
|
2021-12-30 00:14:23 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
name: Test Suite
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install libunwind-dev
|
|
|
|
run: sudo apt-get install -y libunwind-dev
|
|
|
|
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install nightly toolchain
|
2023-07-05 15:38:06 +00:00
|
|
|
uses: dtolnay/rust-toolchain@nightly
|
2021-12-30 00:14:23 +00:00
|
|
|
|
|
|
|
- name: Run cargo test
|
2023-07-05 15:38:06 +00:00
|
|
|
run: cargo test --all-features -- --test-threads=1
|
2021-12-30 00:14:23 +00:00
|
|
|
|
|
|
|
## Currently disabled because internal version of rustfmt produces different
|
|
|
|
## formatting.
|
|
|
|
# rustfmt:
|
|
|
|
# name: Check format
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - name: Checkout sources
|
|
|
|
# uses: actions/checkout@v2
|
|
|
|
#
|
|
|
|
# - name: Install nightly toolchain
|
2023-07-05 15:38:06 +00:00
|
|
|
# uses: dtolnay/rust-toolchain@nightly
|
2021-12-30 00:14:23 +00:00
|
|
|
# with:
|
|
|
|
# components: rustfmt
|
|
|
|
#
|
|
|
|
# - name: Run cargo fmt
|
2023-07-05 15:38:06 +00:00
|
|
|
# run: cargo fmt --all -- --check
|
2021-12-30 00:14:23 +00:00
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install libunwind-dev
|
|
|
|
run: sudo apt-get install -y libunwind-dev
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
2023-07-05 15:38:06 +00:00
|
|
|
- uses: dtolnay/rust-toolchain@nightly
|
2021-12-30 00:14:23 +00:00
|
|
|
with:
|
|
|
|
components: clippy
|
2023-07-05 15:38:06 +00:00
|
|
|
- name: Run cargo clippy
|
2024-02-15 18:09:51 +00:00
|
|
|
run: cargo clippy --all-features
|