From 38a3bacc6ceafd1b1419f061eac08e91cf84d1a3 Mon Sep 17 00:00:00 2001 From: HDauven Date: Fri, 17 Nov 2023 12:55:28 +0100 Subject: [PATCH] Update CI --- .github/workflows/dusk_ci.yml | 97 +++++------------------------------ rust-toolchain | 1 - rust-toolchain.toml | 3 ++ 3 files changed, 15 insertions(+), 86 deletions(-) delete mode 100644 rust-toolchain create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/dusk_ci.yml b/.github/workflows/dusk_ci.yml index e1760c8..8fe5ae5 100644 --- a/.github/workflows/dusk_ci.yml +++ b/.github/workflows/dusk_ci.yml @@ -8,95 +8,22 @@ name: CI jobs: analyze: - name: Dusk Analyzer - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: install - args: --git https://github.com/dusk-network/cargo-dusk-analyzer - - uses: actions-rs/cargo@v1 - with: - command: dusk-analyzer + name: Code Analysis + uses: dusk-network/.github/.github/workflows/code-analysis.yml@main + with: + clippy_default: false + clippy_args: -- -D warnings - check: - name: Check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: check + dusk_analyzer: + name: Dusk Analyzer + uses: dusk-network/.github/.github/workflows/dusk-analysis.yml@main test_std: name: Tests std - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: test - args: --release + uses: dusk-network/.github/.github/workflows/run-tests.yml@main test_no_std: name: Tests no_std - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: test - args: --release --no-default-features - - fmt: - name: Rustfmt - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - clippy: - name: Clippy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install latest stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - - run: rustup component add clippy - - run: rustup component add rustfmt - - name: Run `cargo clippy` - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + uses: dusk-network/.github/.github/workflows/run-tests.yml@main + with: + test_flags: --no-default-features diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index c309192..0000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -nightly-2023-05-22 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..a0a0131 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "nightly-2023-05-22" +components = ["rustfmt", "rustup", "cargo", "clippy"] \ No newline at end of file