Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 47df4ea

Browse files
authored
Clean up build a little. (#181)
* Clean up build a little. * Create if does not exist. * Remove clippy for now cause it's super slow. * Create if does not exist.
1 parent b0c6034 commit 47df4ea

File tree

2 files changed

+3
-43
lines changed

2 files changed

+3
-43
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,3 @@ jobs:
3434
command: fmt
3535
toolchain: nightly
3636
args: --all -- --check
37-
check-clippy:
38-
name: Check Clippy
39-
runs-on: self-hosted
40-
container: paritytech/ci-linux:production
41-
env:
42-
RUST_BACKTRACE: full
43-
steps:
44-
- name: Checkout sources & submodules
45-
uses: actions/checkout@master
46-
with:
47-
fetch-depth: 5
48-
submodules: recursive
49-
- name: Add clippy
50-
run: rustup component add clippy --toolchain nightly
51-
- name: Fetch
52-
uses: actions-rs/cargo@master
53-
with:
54-
command: fetch
55-
toolchain: nightly
56-
- name: Clippy
57-
uses: actions-rs/cargo@master
58-
with:
59-
command: clippy
60-
toolchain: nightly
61-
# args: --all-targets -- -D warnings
62-
args: --all-targets

.github/workflows/rust.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,9 @@ jobs:
6060
else
6161
echo "The Rust nightly version has changed. Clearing the cache";
6262
rm -rf $CARGO_TARGET_DIR/*;
63-
fi
63+
fi;
64+
rustc +nightly --version > $CARGO_TARGET_DIR/check_nightly_rust;
6465
shell: bash
65-
- name: Add rustfmt
66-
run: rustup component add rustfmt --toolchain ${{ matrix.toolchain }}
67-
- name: Style check
68-
uses: actions-rs/cargo@master
69-
with:
70-
command: fmt
71-
toolchain: ${{ matrix.toolchain }}
72-
args: --all -- --check
7366
- name: Checking rust-${{ matrix.toolchain }}
7467
uses: actions-rs/cargo@master
7568
with:
@@ -87,7 +80,6 @@ jobs:
8780
toolchain: ${{ matrix.toolchain }}
8881
args: --all --verbose
8982
- name: Stats sccache
90-
if: always()
9183
run: sccache --show-stats
9284
## Build stage
9385
- name: Building rust-${{ matrix.toolchain }}
@@ -98,7 +90,7 @@ jobs:
9890
toolchain: ${{ matrix.toolchain }}
9991
args: --all --release --verbose
10092
- name: Stats sccache
101-
if: always()
93+
if: github.ref == 'refs/heads/master'
10294
run: sccache --show-stats
10395
- name: Prepare artifacts
10496
if: github.ref == 'refs/heads/master'
@@ -108,12 +100,6 @@ jobs:
108100
mv -v $CARGO_TARGET_DIR/release/ethereum-poa-relay ./artifacts/;
109101
mv -v $CARGO_TARGET_DIR/release/substrate-bridge ./artifacts/;
110102
shell: bash
111-
- name: Rust nightly version
112-
run: |
113-
echo "Cached Rust nightly version:";
114-
rustc +nightly --version;
115-
rustc +nightly --version > $CARGO_TARGET_DIR/check_nightly_rust;
116-
shell: bash
117103
- name: Upload artifacts
118104
if: github.ref == 'refs/heads/master'
119105
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)