@@ -33,64 +33,64 @@ jobs:
33
33
run : |
34
34
cargo fmt -- --check
35
35
36
- check :
37
- name : Cargo check
38
- needs : format
39
- runs-on : ubuntu-24.04
40
- steps :
41
- - uses : actions/checkout@v3
42
- - name : Install linux dependencies
43
- run : sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler
44
- - name : Install toolchain and rust-src
45
- uses : actions-rs/toolchain@v1
46
- with :
47
- toolchain : 1.81.0
48
- override : true
49
- target : wasm32-unknown-unknown
50
- components : rust-src
51
- - name : Rust Cache
52
- uses : Swatinem/rust-cache@v2
53
- - name : Install try-runtime
54
- run : cargo install --git https://github.com/paritytech/try-runtime-cli --tag v0.8.0 --locked
55
- - name : Check Build
56
- run : |
57
- cargo build --release --features try-runtime
58
- - name : Check Try-Runtime Testnet
59
- run : |
60
- try-runtime --runtime ./target/release/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm \
61
- on-runtime-upgrade --blocktime 6000 --disable-idempotency-checks live --uri wss://archive.testnet.cere.network:443
62
- - name : Check Try-Runtime Mainnet
63
- run : |
64
- try-runtime --runtime ./target/release/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm \
65
- on-runtime-upgrade --blocktime 6000 --disable-idempotency-checks live --uri wss://archive.mainnet.cere.network:443
66
- - name : Run dev chain
67
- run : |
68
- timeout --preserve-status 30s ./target/release/cere --dev
69
- - name : Check Build for Benchmarking
70
- run : >
71
- pushd node &&
72
- cargo check --features=runtime-benchmarks --release
73
-
74
- clippy :
75
- name : Run Clippy
76
- needs : format
77
- runs-on : ubuntu-24.04
78
- steps :
79
- - uses : actions/checkout@v3
80
- - name : Install linux dependencies
81
- run : sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler
82
- - name : Install toolchain
83
- uses : actions-rs/toolchain@v1
84
- with :
85
- toolchain : 1.81.0
86
- override : true
87
- target : wasm32-unknown-unknown
88
- components : rust-src
89
- - name : Rust Cache
90
- uses : Swatinem/rust-cache@v2
91
- - name : Check with Clippy
92
- run : |
93
- cargo clippy --no-deps --all-targets --features runtime-benchmarks,try-runtime --workspace -- --deny warnings
36
+ # check:
37
+ # name: Cargo check
38
+ # needs: format
39
+ # runs-on: ubuntu-24.04
40
+ # steps:
41
+ # - uses: actions/checkout@v3
42
+ # - name: Install linux dependencies
43
+ # run: sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler
44
+ # - name: Install toolchain and rust-src
45
+ # uses: actions-rs/toolchain@v1
46
+ # with:
47
+ # toolchain: 1.81.0
48
+ # override: true
49
+ # target: wasm32-unknown-unknown
50
+ # components: rust-src
51
+ # - name: Rust Cache
52
+ # uses: Swatinem/rust-cache@v2
53
+ # - name: Install try-runtime
54
+ # run: cargo install --git https://github.com/paritytech/try-runtime-cli --tag v0.8.0 --locked
55
+ # - name: Check Build
56
+ # run: |
57
+ # cargo build --release --features try-runtime
58
+ # - name: Check Try-Runtime Testnet
59
+ # run: |
60
+ # try-runtime --runtime ./target/release/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm \
61
+ # on-runtime-upgrade --blocktime 6000 --disable-idempotency-checks live --uri wss://archive.testnet.cere.network:443
62
+ # - name: Check Try-Runtime Mainnet
63
+ # run: |
64
+ # try-runtime --runtime ./target/release/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm \
65
+ # on-runtime-upgrade --blocktime 6000 --disable-idempotency-checks live --uri wss://archive.mainnet.cere.network:443
66
+ # - name: Run dev chain
67
+ # run: |
68
+ # timeout --preserve-status 30s ./target/release/cere --dev
69
+ # - name: Check Build for Benchmarking
70
+ # run: >
71
+ # pushd node &&
72
+ # cargo check --features=runtime-benchmarks --release
73
+ #
74
+ # clippy:
75
+ # name: Run Clippy
76
+ # needs: format
77
+ # runs-on: ubuntu-24.04
78
+ # steps:
79
+ # - uses: actions/checkout@v3
80
+ # - name: Install linux dependencies
81
+ # run: sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler
82
+ # - name: Install toolchain
83
+ # uses: actions-rs/toolchain@v1
84
+ # with:
85
+ # toolchain: 1.81.0
86
+ # override: true
87
+ # target: wasm32-unknown-unknown
88
+ # components: rust-src
89
+ # - name: Rust Cache
90
+ # uses: Swatinem/rust-cache@v2
91
+ # - name: Check with Clippy
92
+ # run: |
93
+ # cargo clippy --no-deps --all-targets --features runtime-benchmarks,try-runtime --workspace -- --deny warnings
94
94
95
95
tests :
96
96
name : Run tests
@@ -102,13 +102,14 @@ jobs:
102
102
- uses : actions/checkout@v3
103
103
- name : Install linux dependencies
104
104
run : sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler make
105
- - name : Install Rust
105
+ - name : Install Rust and Use It
106
+ shell : bash
106
107
run : |
107
108
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
108
109
. "$HOME/.cargo/env"
110
+ rustup toolchain install 1.81.0
111
+ rustup default 1.81.0
109
112
rustup show
110
- - name : Add Cargo bin to PATH
111
- run : echo "$HOME/.cargo/bin" >> $GITHUB_PATH
112
113
- name : Install toolchain
113
114
uses : actions-rs/toolchain@v1
114
115
with :
0 commit comments