Skip to content

Commit 6a14c76

Browse files
committed
chore: test maximise build space
1 parent 1f87ef7 commit 6a14c76

File tree

3 files changed

+83
-25
lines changed

3 files changed

+83
-25
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Clippy check --all-features
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, edited]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
env:
11+
RUSTFLAGS: "-Dwarnings"
12+
13+
jobs:
14+
clippy_check:
15+
runs-on: ubuntu-latest
16+
container:
17+
image: paritytech/ci-unified:bullseye-1.74.0
18+
if: ${{ !contains(github.event.head_commit.message, '[ci-skip-rust]') }}
19+
steps:
20+
- name: Maximize build space
21+
uses: easimon/maximize-build-space@master
22+
with:
23+
root-reserve-mb: 512
24+
swap-size-mb: 1024
25+
remove-dotnet: 'true'
26+
remove-android: 'true'
27+
- uses: actions/checkout@v4
28+
- name: Run Clippy
29+
run: SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet

.github/workflows/check-clippy.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Clippy check
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, edited]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
env:
11+
RUSTFLAGS: "-Dwarnings"
12+
13+
jobs:
14+
clippy_check:
15+
runs-on: ubuntu-latest
16+
container:
17+
image: paritytech/ci-unified:bullseye-1.74.0
18+
if: ${{ !contains(github.event.head_commit.message, '[ci-skip-rust]') }}
19+
steps:
20+
- name: Maximize build space
21+
uses: easimon/maximize-build-space@master
22+
with:
23+
root-reserve-mb: 512
24+
swap-size-mb: 1024
25+
remove-dotnet: 'true'
26+
remove-android: 'true'
27+
- uses: actions/checkout@v4
28+
- name: Run Clippy
29+
run: SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet

.gitlab/check.yml

+25-25
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@
66
exit 0
77
fi
88
9-
cargo-clippy:
10-
extends: .check_skip_rust
11-
image: paritytech/ci-unified:bullseye-1.74.0
12-
variables:
13-
RUSTDOCFLAGS: '-D warnings'
14-
stage: check
15-
cache:
16-
key: cargo-clippy
17-
paths:
18-
- ${CARGO_CACHE_PATH}
19-
script:
20-
- SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --quiet
21-
22-
cargo-clippy-all-features:
23-
extends: .check_skip_rust
24-
image: paritytech/ci-unified:bullseye-1.74.0
25-
variables:
26-
RUSTDOCFLAGS: '-D warnings'
27-
stage: check
28-
cache:
29-
key: cargo-clippy-all-features
30-
paths:
31-
- ${CARGO_CACHE_PATH}
32-
script:
33-
- SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet
9+
#cargo-clippy:
10+
# extends: .check_skip_rust
11+
# image: paritytech/ci-unified:bullseye-1.74.0
12+
# variables:
13+
# RUSTDOCFLAGS: '-D warnings'
14+
# stage: check
15+
# cache:
16+
# key: cargo-clippy
17+
# paths:
18+
# - ${CARGO_CACHE_PATH}
19+
# script:
20+
# - SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --quiet
21+
#
22+
#cargo-clippy-all-features:
23+
# extends: .check_skip_rust
24+
# image: paritytech/ci-unified:bullseye-1.74.0
25+
# variables:
26+
# RUSTDOCFLAGS: '-D warnings'
27+
# stage: check
28+
# cache:
29+
# key: cargo-clippy-all-features
30+
# paths:
31+
# - ${CARGO_CACHE_PATH}
32+
# script:
33+
# - SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --quiet

0 commit comments

Comments
 (0)