From 6a14c7626e4df38bd6b59b16899495ba15b48827 Mon Sep 17 00:00:00 2001 From: gera Date: Thu, 1 Aug 2024 11:10:38 +0200 Subject: [PATCH] chore: test maximise build space --- .../workflows/check-clippy-all-features.yml | 29 +++++++++++ .github/workflows/check-clippy.yml | 29 +++++++++++ .gitlab/check.yml | 50 +++++++++---------- 3 files changed, 83 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/check-clippy-all-features.yml create mode 100644 .github/workflows/check-clippy.yml diff --git a/.github/workflows/check-clippy-all-features.yml b/.github/workflows/check-clippy-all-features.yml new file mode 100644 index 000000000..25e42ae1b --- /dev/null +++ b/.github/workflows/check-clippy-all-features.yml @@ -0,0 +1,29 @@ +name: Clippy check --all-features +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + clippy_check: + runs-on: ubuntu-latest + container: + image: paritytech/ci-unified:bullseye-1.74.0 + if: ${{ !contains(github.event.head_commit.message, '[ci-skip-rust]') }} + steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + - uses: actions/checkout@v4 + - name: Run Clippy + run: SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet diff --git a/.github/workflows/check-clippy.yml b/.github/workflows/check-clippy.yml new file mode 100644 index 000000000..bac4fc56a --- /dev/null +++ b/.github/workflows/check-clippy.yml @@ -0,0 +1,29 @@ +name: Clippy check +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + clippy_check: + runs-on: ubuntu-latest + container: + image: paritytech/ci-unified:bullseye-1.74.0 + if: ${{ !contains(github.event.head_commit.message, '[ci-skip-rust]') }} + steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + - uses: actions/checkout@v4 + - name: Run Clippy + run: SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet diff --git a/.gitlab/check.yml b/.gitlab/check.yml index ae469f261..b9b051dc8 100644 --- a/.gitlab/check.yml +++ b/.gitlab/check.yml @@ -6,28 +6,28 @@ exit 0 fi -cargo-clippy: - extends: .check_skip_rust - image: paritytech/ci-unified:bullseye-1.74.0 - variables: - RUSTDOCFLAGS: '-D warnings' - stage: check - cache: - key: cargo-clippy - paths: - - ${CARGO_CACHE_PATH} - script: - - SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --quiet - -cargo-clippy-all-features: - extends: .check_skip_rust - image: paritytech/ci-unified:bullseye-1.74.0 - variables: - RUSTDOCFLAGS: '-D warnings' - stage: check - cache: - key: cargo-clippy-all-features - paths: - - ${CARGO_CACHE_PATH} - script: - - SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet +#cargo-clippy: +# extends: .check_skip_rust +# image: paritytech/ci-unified:bullseye-1.74.0 +# variables: +# RUSTDOCFLAGS: '-D warnings' +# stage: check +# cache: +# key: cargo-clippy +# paths: +# - ${CARGO_CACHE_PATH} +# script: +# - SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --quiet +# +#cargo-clippy-all-features: +# extends: .check_skip_rust +# image: paritytech/ci-unified:bullseye-1.74.0 +# variables: +# RUSTDOCFLAGS: '-D warnings' +# stage: check +# cache: +# key: cargo-clippy-all-features +# paths: +# - ${CARGO_CACHE_PATH} +# script: +# - SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet