@@ -20,57 +20,43 @@ jobs:
20
20
with :
21
21
ref : ${{ github.head_ref }}
22
22
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