Skip to content

Commit

Permalink
chore: test maximise build space
Browse files Browse the repository at this point in the history
  • Loading branch information
ggera committed Aug 1, 2024
1 parent 1f87ef7 commit 6a14c76
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 25 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check-clippy-all-features.yml
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions .github/workflows/check-clippy.yml
Original file line number Diff line number Diff line change
@@ -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
50 changes: 25 additions & 25 deletions .gitlab/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6a14c76

Please sign in to comment.