@@ -41,14 +41,20 @@ jobs:
41
41
with :
42
42
cache-on-failure : true
43
43
cache-all-crates : true
44
+ - name : cargo info
45
+ run : |
46
+ echo "######## rustup show ########"
47
+ rustup show
48
+ echo "######## cargo --version ########"
49
+ cargo --version
44
50
- name : Cargo fmt
45
51
run : cargo +nightly fmt --all -- --check
46
52
47
53
build-test-linux :
48
54
name : Build Linux
49
55
runs-on : parity-large
50
56
timeout-minutes : 30
51
- needs : [set-image]
57
+ needs : [set-image, fmt ]
52
58
container :
53
59
image : ${{ needs.set-image.outputs.CI_IMAGE }}
54
60
steps :
@@ -58,12 +64,22 @@ jobs:
58
64
with :
59
65
cache-on-failure : true
60
66
cache-all-crates : true
67
+ - name : cargo info
68
+ run : |
69
+ echo "######## rustup show ########"
70
+ rustup show
71
+ echo "######## cargo --version ########"
72
+ cargo --version
61
73
- name : Build and Test Linux
62
74
run : |
75
+ echo "######## cargo build ########"
63
76
cargo build --release
77
+ echo "######## cargo test ########"
64
78
cargo test --release --all
79
+ echo "######## Packing artifacts ########"
65
80
mkdir -p ./artifacts/substrate-contracts-node-linux/
66
81
cp target/release/substrate-contracts-node ./artifacts/substrate-contracts-node-linux/substrate-contracts-node
82
+ ls -la ./artifacts/substrate-contracts-node-linux/
67
83
- name : Upload artifacts
68
84
69
85
with :
72
88
build-macos :
73
89
timeout-minutes : 30
74
90
runs-on : parity-macos
91
+ needs : [fmt]
75
92
steps :
76
93
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
77
94
- name : Set rust version from env file
@@ -104,12 +121,16 @@ jobs:
104
121
cache-all-crates : true
105
122
- name : Run cargo build
106
123
run : |
124
+ echo "######## cargo build aarch64-apple-darwin ########"
107
125
cargo build --release --target aarch64-apple-darwin
126
+ echo "######## cargo build x86_64-apple-darwin ########"
108
127
cargo build --release --target x86_64-apple-darwin
128
+ echo "######## Packing artifacts ########"
109
129
mkdir -p ./artifacts/substrate-contracts-node-mac/
110
130
lipo ./target/x86_64-apple-darwin/release/substrate-contracts-node \
111
131
./target/aarch64-apple-darwin/release/substrate-contracts-node \
112
132
-create -output ./artifacts/substrate-contracts-node-mac/substrate-contracts-node
133
+ ls -la ./artifacts/substrate-contracts-node-mac/
113
134
- name : Upload artifacts
114
135
115
136
with :
0 commit comments