Skip to content

Commit 99f6178

Browse files
committed
ref: cleanup scripts
1 parent 2066af4 commit 99f6178

File tree

7 files changed

+13
-23
lines changed

7 files changed

+13
-23
lines changed

.github/workflows/check-wasm.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ jobs:
2525
with:
2626
target: wasm32-unknown-unknown
2727
components: rust-src
28-
toolchain: nightly-2024-07-25
28+
toolchain: nightly-2024-01-01
2929

3030
- uses: Swatinem/rust-cache@v2
3131

3232
- name: install cargo-stylus
33-
run: cargo install [email protected].1
33+
run: cargo install [email protected].3
3434

3535
- name: run wasm check
36-
run: |
37-
export NIGHTLY_TOOLCHAIN=${{steps.toolchain.outputs.name}}
38-
./scripts/check-wasm.sh
36+
run: ./scripts/check-wasm.sh

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
with:
3333
target: wasm32-unknown-unknown
3434
components: rust-src
35-
toolchain: nightly-2024-07-25
35+
toolchain: nightly-2024-01-01
3636

3737
- uses: Swatinem/rust-cache@v2
3838
with:
3939
key: "e2e-tests"
4040

4141
- name: install cargo-stylus
42-
run: cargo install [email protected].1
42+
run: cargo install [email protected].3
4343

4444
- name: install solc
4545
run: |
@@ -50,6 +50,4 @@ jobs:
5050
- name: setup nitro node
5151
run: ./scripts/nitro-testnode.sh -d -i
5252
- name: run integration tests
53-
run: |
54-
export NIGHTLY_TOOLCHAIN=${{steps.toolchain.outputs.name}}
55-
./scripts/e2e-tests.sh
53+
run: ./scripts/e2e-tests.sh

.github/workflows/gas-bench.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
target: wasm32-unknown-unknown
2727
components: rust-src
28-
toolchain: nightly-2024-07-25
28+
toolchain: nightly-2024-01-01
2929

3030
- uses: Swatinem/rust-cache@v2
3131
with:
@@ -40,6 +40,4 @@ jobs:
4040
- name: setup nitro node
4141
run: ./scripts/nitro-testnode.sh -d -i
4242
- name: run benches
43-
run: |
44-
export NIGHTLY_TOOLCHAIN=${{steps.toolchain.outputs.name}}
45-
./scripts/bench.sh
43+
run: ./scripts/bench.sh

scripts/bench.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ MYDIR=$(realpath "$(dirname "$0")")
55
cd "$MYDIR"
66
cd ..
77

8-
NIGHTLY_TOOLCHAIN=${NIGHTLY_TOOLCHAIN:-nightly}
9-
cargo +"$NIGHTLY_TOOLCHAIN" build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
8+
cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
109

1110
export RPC_URL=http://localhost:8547
1211
cargo run --release -p benches

scripts/check-wasm.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ get_example_crate_names () {
2222
find ./examples -maxdepth 2 -type f -name "Cargo.toml" | xargs grep 'name = ' | grep -oE '".*"' | tr -d "'\""
2323
}
2424

25-
NIGHTLY_TOOLCHAIN=${NIGHTLY_TOOLCHAIN:-nightly}
26-
27-
cargo +"$NIGHTLY_TOOLCHAIN" build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
25+
cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
2826

2927
for CRATE_NAME in $(get_example_crate_names)
3028
do

scripts/e2e-tests.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ MYDIR=$(realpath "$(dirname "$0")")
55
cd "$MYDIR"
66
cd ..
77

8-
NIGHTLY_TOOLCHAIN=${NIGHTLY_TOOLCHAIN:-nightly-2024-01-01}
9-
cargo +"$NIGHTLY_TOOLCHAIN" build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
8+
cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
109

1110
export RPC_URL=http://localhost:8547
1211
# We should use stable here once nitro-testnode is updated and the contracts fit
1312
# the size limit. Work tracked [here](https://github.com/OpenZeppelin/rust-contracts-stylus/issues/87)
14-
cargo +"$NIGHTLY_TOOLCHAIN" test --features std,e2e --test "*"
13+
cargo test --features std,e2e --test "*"

scripts/nitro-testnode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ then
4444
git clone --recurse-submodules https://github.com/OffchainLabs/nitro-testnode.git
4545
cd ./nitro-testnode || exit
4646
# `release` branch.
47-
git checkout 8cb6b84e31909157d431e7e4af9fb83799443e00 || exit
47+
git checkout 148b8cb33fb085345d9abdf0ba57d3b67f63499d || exit
4848

4949
./test-node.bash --no-run --init || exit
5050
fi

0 commit comments

Comments
 (0)