Skip to content

Commit 2422d43

Browse files
author
Roman
committed
test save artifacts
1 parent 0cd3b1e commit 2422d43

File tree

1 file changed

+40
-54
lines changed

1 file changed

+40
-54
lines changed

.github/workflows/push-nodes.yml

Lines changed: 40 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -20,57 +20,43 @@ jobs:
2020
with:
2121
ref: ${{ github.head_ref }}
2222

23-
# - name: Install dependencies
24-
# run: |
25-
# sudo apt-get update &&
26-
# sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler jq
27-
#
28-
# - name: Install Rust stable
29-
# uses: actions-rs/[email protected]
30-
# with:
31-
# toolchain: stable
32-
# components: rustfmt
33-
# profile: minimal
34-
#
35-
# - name: Add wasm32-unknown-unknown target
36-
# run: |
37-
# rustup target add wasm32-unknown-unknown --toolchain stable-x86_64-unknown-linux-gnu
38-
# rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
39-
#
40-
# - name: Run localnet.sh False --build-only
41-
# run: |
42-
# chmod +x scripts/localnet.sh
43-
# ./scripts/localnet.sh False --build-only
44-
#
45-
# - name: Run localnet.sh --build-only
46-
# run: |
47-
# chmod +x scripts/localnet.sh
48-
# ./scripts/localnet.sh --build-only
49-
#
50-
# - name: Create a files
51-
# working-directory: ${{ github.workspace }}
52-
# run: |
53-
# mkdir -p ${{ github.workspace }}/nodes/fast-blocks/release
54-
# mkdir -p ${{ github.workspace }}/nodes/non-fast-blocks/release
55-
# echo "fast-blocks" > ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
56-
# echo "non-fast-blocks" > ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
57-
#
58-
# - name: Commit changes
59-
# working-directory: ${{ github.workspace }}
60-
# run: |
61-
# git config --global user.name "GitHub Actions"
62-
# git config --global user.email "[email protected]"
63-
# git add ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
64-
# git commit -m "Update nodes" || echo "No changes to commit"
65-
#
66-
# - name: Push changes to PR branch
67-
# run: |
68-
# git push https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.head_ref }}
69-
#
70-
#
71-
# - name: Merge PR
72-
# uses: repo-sync/pull-request@v2
73-
# with:
74-
# destination_branch: devnet-ready
75-
# github_token: ${{ secrets.GITHUB_TOKEN }}
76-
# pr_number: ${{ github.event.number }}
23+
- name: Install dependencies
24+
run: |
25+
sudo apt-get update &&
26+
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler jq
27+
28+
- name: Install Rust stable
29+
uses: actions-rs/[email protected]
30+
with:
31+
toolchain: stable
32+
components: rustfmt
33+
profile: minimal
34+
35+
- name: Add wasm32-unknown-unknown target
36+
run: |
37+
rustup target add wasm32-unknown-unknown --toolchain stable-x86_64-unknown-linux-gnu
38+
rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
39+
40+
- name: Run localnet.sh False --build-only
41+
run: |
42+
chmod +x scripts/localnet.sh
43+
./scripts/localnet.sh False --build-only
44+
45+
- name: Run localnet.sh --build-only
46+
run: |
47+
chmod +x scripts/localnet.sh
48+
./scripts/localnet.sh --build-only
49+
50+
- name: Create a files
51+
working-directory: ${{ github.workspace }}
52+
run: |
53+
mkdir -p ${{ github.workspace }}/nodes/fast-blocks/release
54+
mkdir -p ${{ github.workspace }}/nodes/non-fast-blocks/release
55+
echo "fast-blocks" > ${{ github.workspace }}/nodes/fast-blocks/release/node-subtensor
56+
echo "non-fast-blocks" > ${{ github.workspace }}/nodes/non-fast-blocks/release/node-subtensor
57+
58+
- name: Upload artifact
59+
uses: actions/upload-artifact@v3
60+
with:
61+
name: my-artifact
62+
path: ${{ github.workspace }}/nodes

0 commit comments

Comments
 (0)