Skip to content

Commit a151bc4

Browse files
committed
add info to jobs and deps to fmt
1 parent bbf0249 commit a151bc4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,20 @@ jobs:
4141
with:
4242
cache-on-failure: true
4343
cache-all-crates: true
44+
- name: cargo info
45+
run: |
46+
echo "######## rustup show ########"
47+
rustup show
48+
echo "######## cargo --version ########"
49+
cargo --version
4450
- name: Cargo fmt
4551
run: cargo +nightly fmt --all -- --check
4652

4753
build-test-linux:
4854
name: Build Linux
4955
runs-on: parity-large
5056
timeout-minutes: 30
51-
needs: [set-image]
57+
needs: [set-image, fmt]
5258
container:
5359
image: ${{ needs.set-image.outputs.CI_IMAGE }}
5460
steps:
@@ -58,12 +64,22 @@ jobs:
5864
with:
5965
cache-on-failure: true
6066
cache-all-crates: true
67+
- name: cargo info
68+
run: |
69+
echo "######## rustup show ########"
70+
rustup show
71+
echo "######## cargo --version ########"
72+
cargo --version
6173
- name: Build and Test Linux
6274
run: |
75+
echo "######## cargo build ########"
6376
cargo build --release
77+
echo "######## cargo test ########"
6478
cargo test --release --all
79+
echo "######## Packing artifacts ########"
6580
mkdir -p ./artifacts/substrate-contracts-node-linux/
6681
cp target/release/substrate-contracts-node ./artifacts/substrate-contracts-node-linux/substrate-contracts-node
82+
ls -la ./artifacts/substrate-contracts-node-linux/
6783
- name: Upload artifacts
6884
uses: actions/[email protected]
6985
with:
@@ -72,6 +88,7 @@ jobs:
7288
build-macos:
7389
timeout-minutes: 30
7490
runs-on: parity-macos
91+
needs: [fmt]
7592
steps:
7693
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
7794
- name: Set rust version from env file
@@ -104,12 +121,16 @@ jobs:
104121
cache-all-crates: true
105122
- name: Run cargo build
106123
run: |
124+
echo "######## cargo build aarch64-apple-darwin ########"
107125
cargo build --release --target aarch64-apple-darwin
126+
echo "######## cargo build x86_64-apple-darwin ########"
108127
cargo build --release --target x86_64-apple-darwin
128+
echo "######## Packing artifacts ########"
109129
mkdir -p ./artifacts/substrate-contracts-node-mac/
110130
lipo ./target/x86_64-apple-darwin/release/substrate-contracts-node \
111131
./target/aarch64-apple-darwin/release/substrate-contracts-node \
112132
-create -output ./artifacts/substrate-contracts-node-mac/substrate-contracts-node
133+
ls -la ./artifacts/substrate-contracts-node-mac/
113134
- name: Upload artifacts
114135
uses: actions/[email protected]
115136
with:

0 commit comments

Comments
 (0)