This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ env: | |
RUST_NIGHTLY: "2023-05-23" | ||
|
||
jobs: | ||
check: | ||
format: | ||
runs-on: snowbridge-runner | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
|
@@ -54,12 +54,9 @@ jobs: | |
rustup toolchain install nightly | ||
rustup component add rustfmt --toolchain nightly | ||
rustup show | ||
- name: cargo check | ||
run: cargo check --workspace --all-features | ||
- name: clippy | ||
run: cargo clippy --all-features -- -D warnings | ||
- name: format | ||
run: cargo +nightly fmt --all -- --check | ||
working-directory: bridges/snowbridge | ||
run: cargo +nightly fmt -- --check | ||
- name: install taplo | ||
run: | | ||
cargo install taplo-cli --locked | ||
|
@@ -76,6 +73,48 @@ jobs: | |
markdownlint --version | ||
markdownlint --config .github/.markdownlint.yaml --ignore target | ||
check: | ||
runs-on: snowbridge-runner | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUST_BACKTRACE: 1 | ||
RUSTFLAGS: -C debuginfo=1 | ||
SKIP_WASM_BUILD: 1 | ||
RUST_NIGHTLY_VERSION: nightly-2024-02-08 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: "true" | ||
- uses: arduino/setup-protoc@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/cache@v1 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo- | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: "18.x" | ||
registry-url: "https://npm.pkg.github.com" | ||
scope: "@paritytech" | ||
- name: setup rust toolchain | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
curl -LO https://github.com/paritytech/rustc-rv32e-toolchain/releases/download/v1.1.0/rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst | ||
tar -I zstd -xf rust-rve-nightly-2024-01-05-x86_64-unknown-linux-gnu.tar.zst | ||
mv rve-nightly ~/.rustup/toolchains/ | ||
rustup toolchain install nightly | ||
rustup component add rustfmt --toolchain nightly | ||
rustup show | ||
- name: cargo check | ||
run: cargo check --workspace --all-features | ||
- name: clippy | ||
run: cargo clippy --all-features -- -D warnings | ||
|
||
test: | ||
needs: check | ||
runs-on: snowbridge-runner | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters