File tree Expand file tree Collapse file tree 9 files changed +20
-20
lines changed Expand file tree Collapse file tree 9 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,17 @@ jobs:
40
40
git submodule add https://github.com/nervosnetwork/ckb-c-stdlib deps/ckb-c-stdlib &&
41
41
git submodule add https://github.com/xxuejie/lib-dummy-atomics deps/lib-dummy-atomics
42
42
- name : Lock Rust version
43
- run : cd test-workspace && echo "1.81.0 " > rust-toolchain
44
- - name : Install riscv64 target
45
- run : cd test-workspace && rustup target add riscv64imac-unknown-none-elf
43
+ run : cd test-workspace && echo "1.85.1 " > rust-toolchain
44
+ - name : Install riscv64 target & clippy
45
+ run : cd test-workspace && rustup target add riscv64imac-unknown-none-elf && rustup component add clippy
46
46
- name : Run all checks
47
47
run : cd test-workspace && make build test check clippy
48
48
- name : Reproducible build runs
49
49
run : cd test-workspace && ./scripts/reproducible_build_docker --update && ./scripts/reproducible_build_docker --no-clean
50
50
- name : Generate standalone contract
51
51
run : cargo generate --path . standalone-contract --name test-contract
52
52
- name : Lock Rust version
53
- run : cd test-contract && echo "1.81.0 " > rust-toolchain
53
+ run : cd test-contract && echo "1.85.1 " > rust-toolchain
54
54
- name : Run all checks
55
55
run : cd test-contract && make build test check clippy
56
56
- name : Reproducible build runs
@@ -218,7 +218,7 @@ jobs:
218
218
219
219
windows-build :
220
220
221
- runs-on : windows-2019
221
+ runs-on : windows-2022
222
222
223
223
steps :
224
224
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ fn main() {
4
4
Err ( _) => "../.." . to_string ( ) ,
5
5
} ;
6
6
7
- println ! ( "cargo:rerun-if-changed={}/deps/lib-dummy-atomics/atomics.c" , top ) ;
7
+ println ! ( "cargo:rerun-if-changed={top }/deps/lib-dummy-atomics/atomics.c" ) ;
8
8
9
9
let target_arch = std:: env:: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) ;
10
10
if target_arch == "riscv64" {
@@ -14,10 +14,10 @@ fn main() {
14
14
"Clang must be used as the compiler!"
15
15
) ;
16
16
build
17
- . file ( format ! ( "{}/deps/lib-dummy-atomics/atomics.c" , top ) )
17
+ . file ( format ! ( "{top }/deps/lib-dummy-atomics/atomics.c" ) )
18
18
. static_flag ( true )
19
- . include ( format ! ( "{}/deps/ckb-c-stdlib" , top ) )
20
- . include ( format ! ( "{}/deps/ckb-c-stdlib/libc" , top ) )
19
+ . include ( format ! ( "{top }/deps/ckb-c-stdlib" ) )
20
+ . include ( format ! ( "{top }/deps/ckb-c-stdlib/libc" ) )
21
21
. no_default_flags ( true )
22
22
. flag ( "--target=riscv64" )
23
23
. flag ( "-march=rv64imc_zba_zbb_zbc_zbs" )
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ fn main() {
16
16
build
17
17
. file ( "c.c" )
18
18
. static_flag ( true )
19
- . include ( format ! ( "{}/deps/ckb-c-stdlib" , top ) )
20
- . include ( format ! ( "{}/deps/ckb-c-stdlib/libc" , top ) )
19
+ . include ( format ! ( "{top }/deps/ckb-c-stdlib" ) )
20
+ . include ( format ! ( "{top }/deps/ckb-c-stdlib/libc" ) )
21
21
. no_default_flags ( true )
22
22
. flag ( "--target=riscv64" )
23
23
. flag ( "-march=rv64imc_zba_zbb_zbc_zbs" )
Original file line number Diff line number Diff line change 7
7
set -ex
8
8
9
9
DOCKER=" ${DOCKER:- docker} "
10
- # docker pull docker.io/cryptape/llvm-n-rust:20250117
11
- DOCKER_IMAGE=" ${DOCKER_IMAGE:- docker.io/ cryptape/ llvm-n-rust@ sha256: 12e7821cb9c7cbc8988d5b1d60bcc87da4cedcf3eea32df1d8833328c5a69f88 } "
10
+ # docker pull docker.io/cryptape/llvm-n-rust:20250617
11
+ DOCKER_IMAGE=" ${DOCKER_IMAGE:- docker.io/ cryptape/ llvm-n-rust@ sha256: d6d1f9a6656039273210de91913c828f5b4aa4a3282d2c93ed19bcb7bbf728fe } "
12
12
CHECKSUM_FILE_PATH=" ${CHECKSUM_FILE_PATH:- checksums.txt} "
13
13
14
14
# We are parsing command line arguments based on tips from:
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ pub fn verify_and_dump_failed_tx(
107
107
let mock_tx = context. dump_tx ( tx) . expect ( "dump failed tx" ) ;
108
108
let json = serde_json:: to_string_pretty ( & mock_tx) . expect ( "json" ) ;
109
109
path. push ( format ! ( "0x{:x}.json" , tx. hash( ) ) ) ;
110
- println ! ( "Failed tx written to {:?}" , path ) ;
110
+ println ! ( "Failed tx written to {path :?}" ) ;
111
111
std:: fs:: write ( path, json) . expect ( "write" ) ;
112
112
}
113
113
result
Original file line number Diff line number Diff line change @@ -59,5 +59,5 @@ fn test_{{crate_name}}() {
59
59
let cycles = context
60
60
. verify_tx ( & tx, 10_000_000 )
61
61
. expect ( "pass verification" ) ;
62
- println ! ( "consume cycles: {}" , cycles ) ;
62
+ println ! ( "consume cycles: {cycles}" ) ;
63
63
}
Original file line number Diff line number Diff line change 7
7
set -ex
8
8
9
9
DOCKER=" ${DOCKER:- docker} "
10
- # docker pull docker.io/cryptape/llvm-n-rust:20250117
11
- DOCKER_IMAGE=" ${DOCKER_IMAGE:- docker.io/ cryptape/ llvm-n-rust@ sha256: 12e7821cb9c7cbc8988d5b1d60bcc87da4cedcf3eea32df1d8833328c5a69f88 } "
10
+ # docker pull docker.io/cryptape/llvm-n-rust:20250617
11
+ DOCKER_IMAGE=" ${DOCKER_IMAGE:- docker.io/ cryptape/ llvm-n-rust@ sha256: d6d1f9a6656039273210de91913c828f5b4aa4a3282d2c93ed19bcb7bbf728fe } "
12
12
CHECKSUM_FILE_PATH=" ${CHECKSUM_FILE_PATH:- checksums.txt} "
13
13
14
14
# We are parsing command line arguments based on tips from:
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ impl Loader {
84
84
path. push ( name) ;
85
85
let result = fs:: read ( & path) ;
86
86
if result. is_err ( ) {
87
- panic ! ( "Binary {:?} is missing!" , path ) ;
87
+ panic ! ( "Binary {path :?} is missing!" ) ;
88
88
}
89
89
result. unwrap ( ) . into ( )
90
90
}
@@ -105,7 +105,7 @@ pub fn verify_and_dump_failed_tx(
105
105
let mock_tx = context. dump_tx ( tx) . expect ( "dump failed tx" ) ;
106
106
let json = serde_json:: to_string_pretty ( & mock_tx) . expect ( "json" ) ;
107
107
path. push ( format ! ( "0x{:x}.json" , tx. hash( ) ) ) ;
108
- println ! ( "Failed tx written to {:?}" , path ) ;
108
+ println ! ( "Failed tx written to {path :?}" ) ;
109
109
std:: fs:: write ( path, json) . expect ( "write" ) ;
110
110
}
111
111
result
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ mod tests {
32
32
. unwrap( )
33
33
. as_nanos( ) as u64 ,
34
34
} ;
35
- println!( "Seed: {}" , seed ) ;
35
+ println!( "Seed: {seed}" ) ;
36
36
37
37
let mut rng = StdRng :: seed_from_u64( seed) ;
38
38
let length = rng. gen_range( 0 ..614400usize ) ;
You can’t perform that action at this time.
0 commit comments