Skip to content

Commit daba1a2

Browse files
author
Roman
committed
try with real build for both type of blocks
1 parent bcf06b4 commit daba1a2

File tree

1 file changed

+41
-35
lines changed

1 file changed

+41
-35
lines changed

.github/workflows/push-nodes.yml

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,49 @@ jobs:
1717
with:
1818
ref: ${{ github.head_ref }}
1919

20-
# - name: Install dependencies
21-
# run: |
22-
# sudo apt-get update &&
23-
# sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler jq
24-
#
25-
# - name: Install Rust stable
26-
# uses: actions-rs/[email protected]
27-
# with:
28-
# toolchain: stable
29-
# components: rustfmt
30-
# profile: minimal
31-
#
32-
# - name: Add wasm32-unknown-unknown target
33-
# run: |
34-
# rustup target add wasm32-unknown-unknown --toolchain stable-x86_64-unknown-linux-gnu
35-
# rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
36-
#
37-
# - name: Run localnet.sh False --build-only
38-
# run: |
39-
# chmod +x scripts/localnet.sh
40-
# ./scripts/localnet.sh False --build-only
41-
#
42-
# - name: Run localnet.sh --build-only
43-
# run: |
44-
# chmod +x scripts/localnet.sh
45-
# ./scripts/localnet.sh --build-only
20+
- name: Install dependencies
21+
run: |
22+
sudo apt-get update &&
23+
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler jq
24+
25+
- name: Install Rust stable
26+
uses: actions-rs/[email protected]
27+
with:
28+
toolchain: stable
29+
components: rustfmt
30+
profile: minimal
31+
32+
- name: Add wasm32-unknown-unknown target
33+
run: |
34+
rustup target add wasm32-unknown-unknown --toolchain stable-x86_64-unknown-linux-gnu
35+
rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
36+
37+
- name: Run localnet.sh False --build-only
38+
run: |
39+
chmod +x scripts/localnet.sh
40+
./scripts/localnet.sh False --build-only
4641
47-
- name: Create a files
48-
working-directory: ${{ github.workspace }}
42+
- name: Run localnet.sh --build-only
4943
run: |
50-
mkdir -p ${{ github.workspace }}/nodes/fast-blocks/release
51-
mkdir -p ${{ github.workspace }}/nodes/non-fast-blocks/release
52-
echo "fast-blocks" > ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
53-
echo "non-fast-blocks" > ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
44+
chmod +x scripts/localnet.sh
45+
./scripts/localnet.sh --build-only
46+
47+
# - name: Create a files
48+
# working-directory: ${{ github.workspace }}
49+
# run: |
50+
# mkdir -p ${{ github.workspace }}/nodes/fast-blocks/release
51+
# mkdir -p ${{ github.workspace }}/nodes/non-fast-blocks/release
52+
# echo "fast-blocks" > ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
53+
# echo "non-fast-blocks" > ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
54+
55+
- name: Upload fast-blocks
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: fast-blocks
59+
path: ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
5460

55-
- name: Upload artifact
61+
- name: Upload non-fast-blocks
5662
uses: actions/upload-artifact@v4
5763
with:
58-
name: nodes-artifacts
59-
path: ${{ github.workspace }}/nodes
64+
name: non-fast-blocks
65+
path: ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor

0 commit comments

Comments
 (0)