Skip to content

Commit

Permalink
Polkadot v1.15.0 (#45)
Browse files Browse the repository at this point in the history
* v1.9.0

* Update to polkadot-v1.15.0 lts

* cargo fmt

* remove flaky lint step

* use arc-runner-set

* update async-channel?

* remove cache

* remove Cargo.lock

* install wasm toolchain

* remove cargo registry

* nightly build

* nightly build

* add rust-src

* build aura

* show toolchain

* add Cargo.lock

* add crates.io to readme

* fix

* jfc continue-on-error

* don't build wasm in no-std

* fix build

* try build
  • Loading branch information
seunlanlege authored Aug 9, 2024
1 parent 4ce1046 commit d7c36c0
Show file tree
Hide file tree
Showing 30 changed files with 345 additions and 316 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,66 +32,50 @@ jobs:
run: cargo check -p sc-simnode

tests:
runs-on: ubuntu-latest
runs-on: arc-runner-set
steps:
- name: Checkout sources
uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- uses: Swatinem/rust-cache@v1
- run: |
rustup target add wasm32-unknown-unknown
rustup component add rust-src
- uses: Swatinem/rust-cache@v1

- name: Install protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler build-essential
- name: Build all binaries
continue-on-error: true
run: |
cargo build --release --bins
- name: Aura Integration tests
continue-on-error: true
run: |
./target/release/aura-node simnode --dev --state-pruning=archive --blocks-pruning=archive &
sleep 20;
RUST_BACKTRACE=1 cargo test --release -p simnode-integration-tests --tests aura -- --nocapture
kill -9 $!
- name: Babe Integration tests
continue-on-error: true
run: |
./target/release/babe-node simnode --dev --state-pruning=archive --blocks-pruning=archive &
sleep 20;
RUST_BACKTRACE=1 cargo test --release -p simnode-integration-tests --tests babe -- --nocapture
kill -9 $!
- name: Parachain Integration tests
continue-on-error: true
run: |
./target/release/parachain-node simnode --dev --state-pruning=archive --blocks-pruning=archive &
sleep 20;
RUST_BACKTRACE=1 cargo test --release -p simnode-integration-tests --tests parachain -- --nocapture
kill -9 $!
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-04-04
components: rustfmt

- name: Check format
run: cargo fmt --all --check
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target
Cargo.lock
.idea
.cargo
.cargo
Loading

0 comments on commit d7c36c0

Please sign in to comment.