Skip to content

Commit 6cfb331

Browse files
committed
Reenable finney state build
1 parent 329c8ea commit 6cfb331

File tree

1 file changed

+108
-108
lines changed

1 file changed

+108
-108
lines changed

.github/workflows/check-finney-clone.yml

+108-108
Original file line numberDiff line numberDiff line change
@@ -25,120 +25,120 @@ env:
2525
VERBOSE: ${{ github.events.input.verbose }}
2626

2727
jobs:
28-
# install-baedeker:
29-
# name: install-baedeker
30-
# runs-on: SubtensorCI
31-
# strategy:
32-
# matrix:
33-
# rust-branch:
34-
# - stable
35-
# rust-target:
36-
# - x86_64-unknown-linux-gnu
37-
# # - x86_64-apple-darwin
38-
# os:
39-
# - ubuntu-latest
40-
# # - macos-latest
41-
# include:
42-
# - os: ubuntu-latest
43-
# # - os: macos-latest
44-
# env:
45-
# RELEASE_NAME: development
46-
# # RUSTFLAGS: -A warnings
47-
# RUSTV: ${{ matrix.rust-branch }}
48-
# RUST_BACKTRACE: full
49-
# RUST_BIN_DIR: target/${{ matrix.rust-target }}
50-
# SKIP_WASM_BUILD: 1
51-
# TARGET: ${{ matrix.rust-target }}
52-
# steps:
53-
# - name: Checkout Baedeker repository
54-
# uses: actions/checkout@v3
55-
# with:
56-
# repository: 'UniqueNetwork/baedeker'
57-
# path: 'baedeker'
58-
59-
# - name: Install Rust toolchain
60-
# uses: actions-rs/toolchain@v1
61-
# with:
62-
# toolchain: stable
63-
# profile: minimal
64-
# override: true
28+
install-baedeker:
29+
name: install-baedeker
30+
runs-on: SubtensorCI
31+
strategy:
32+
matrix:
33+
rust-branch:
34+
- stable
35+
rust-target:
36+
- x86_64-unknown-linux-gnu
37+
# - x86_64-apple-darwin
38+
os:
39+
- ubuntu-latest
40+
# - macos-latest
41+
include:
42+
- os: ubuntu-latest
43+
# - os: macos-latest
44+
env:
45+
RELEASE_NAME: development
46+
# RUSTFLAGS: -A warnings
47+
RUSTV: ${{ matrix.rust-branch }}
48+
RUST_BACKTRACE: full
49+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
50+
SKIP_WASM_BUILD: 1
51+
TARGET: ${{ matrix.rust-target }}
52+
steps:
53+
- name: Checkout Baedeker repository
54+
uses: actions/checkout@v3
55+
with:
56+
repository: 'UniqueNetwork/baedeker'
57+
path: 'baedeker'
58+
59+
- name: Install Rust toolchain
60+
uses: actions-rs/toolchain@v1
61+
with:
62+
toolchain: stable
63+
profile: minimal
64+
override: true
6565

66-
# - name: Build baedeker
67-
# run: |
68-
# cd baedeker
69-
# cargo build --release
66+
- name: Build baedeker
67+
run: |
68+
cd baedeker
69+
cargo build --release
7070
71-
# - name: Prepare binary for artifact upload
72-
# run: |
73-
# mkdir -p ${{ github.workspace }}/bin
74-
# cp ./baedeker/target/release/baedeker ${{ github.workspace }}/bin/
75-
# chmod +x ${{ github.workspace }}/bin/baedeker
71+
- name: Prepare binary for artifact upload
72+
run: |
73+
mkdir -p ${{ github.workspace }}/bin
74+
cp ./baedeker/target/release/baedeker ${{ github.workspace }}/bin/
75+
chmod +x ${{ github.workspace }}/bin/baedeker
7676
77-
# - name: Upload baedeker binary as an artifact
78-
# uses: actions/upload-artifact@v3
79-
# with:
80-
# name: baedeker-binary
81-
# path: ${{ github.workspace }}/bin/baedeker
82-
83-
# download-finney-state:
84-
# needs: install-baedeker
85-
# runs-on: SubtensorCI
86-
# strategy:
87-
# matrix:
88-
# rust-branch:
89-
# - stable
90-
# rust-target:
91-
# - x86_64-unknown-linux-gnu
92-
# # - x86_64-apple-darwin
93-
# os:
94-
# - ubuntu-latest
95-
# # - macos-latest
96-
# include:
97-
# - os: ubuntu-latest
98-
# # - os: macos-latest
99-
# env:
100-
# RELEASE_NAME: development
101-
# # RUSTFLAGS: -A warnings
102-
# RUSTV: ${{ matrix.rust-branch }}
103-
# RUST_BACKTRACE: full
104-
# RUST_BIN_DIR: target/${{ matrix.rust-target }}
105-
# SKIP_WASM_BUILD: 1
106-
# TARGET: ${{ matrix.rust-target }}
107-
# steps:
108-
# - name: Check-out repository under $GITHUB_WORKSPACE
109-
# uses: actions/checkout@v4
110-
111-
# - name: Download baedeker binary
112-
# uses: actions/download-artifact@v3
113-
# with:
114-
# name: baedeker-binary
115-
# path: bin
116-
117-
# - name: Execute baedeker
118-
# run: |
119-
# chmod +x bin/baedeker
120-
# RUST_LOG=info bin/baedeker --spec=docker -J.baedeker/vendor/ --generator=docker_compose=.baedeker/.bdk-env --generator=docker_compose_discover=.baedeker/.bdk-env/discover.env --secret=file=.baedeker/.bdk-env/secret --tla-str=relay_spec=rococo-local --input-modules='lib:baedeker-library/ops/nginx.libsonnet' --input-modules='lib:baedeker-library/ops/devtools.libsonnet' --tla-str=repoDir=$(realpath .baedeker/..) .baedeker/forkless-data.jsonnet --tla-str=forked_spec=subtensor --tla-str=fork_source=wss://entrypoint-finney.opentensor.ai .baedeker/rewrites.jsonnet
121-
122-
# - name: Prepare genesis with data for artifact upload
123-
# run: |
124-
# mkdir -p ${{ github.workspace }}/finney-spec
125-
# cp .baedeker/.bdk-env/specs/subtensor.json ${{ github.workspace }}/finney-spec/
126-
127-
# - name: Prepare secrets for artifact upload
128-
# run: |
129-
# mkdir -p ${{ github.workspace }}/finney-spec
130-
# mkdir -p ${{ github.workspace }}/finney-spec/secret
131-
# cp -r .baedeker/.bdk-env/secret/* ${{ github.workspace }}/finney-spec/secret
132-
133-
# - name: Upload spec and secrets as an artifact
134-
# uses: actions/upload-artifact@v3
135-
# with:
136-
# name: finney-state
137-
# path: ${{ github.workspace }}/finney-spec/
77+
- name: Upload baedeker binary as an artifact
78+
uses: actions/upload-artifact@v3
79+
with:
80+
name: baedeker-binary
81+
path: ${{ github.workspace }}/bin/baedeker
82+
83+
download-finney-state:
84+
needs: install-baedeker
85+
runs-on: SubtensorCI
86+
strategy:
87+
matrix:
88+
rust-branch:
89+
- stable
90+
rust-target:
91+
- x86_64-unknown-linux-gnu
92+
# - x86_64-apple-darwin
93+
os:
94+
- ubuntu-latest
95+
# - macos-latest
96+
include:
97+
- os: ubuntu-latest
98+
# - os: macos-latest
99+
env:
100+
RELEASE_NAME: development
101+
# RUSTFLAGS: -A warnings
102+
RUSTV: ${{ matrix.rust-branch }}
103+
RUST_BACKTRACE: full
104+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
105+
SKIP_WASM_BUILD: 1
106+
TARGET: ${{ matrix.rust-target }}
107+
steps:
108+
- name: Check-out repository under $GITHUB_WORKSPACE
109+
uses: actions/checkout@v4
110+
111+
- name: Download baedeker binary
112+
uses: actions/download-artifact@v3
113+
with:
114+
name: baedeker-binary
115+
path: bin
116+
117+
- name: Execute baedeker
118+
run: |
119+
chmod +x bin/baedeker
120+
RUST_LOG=info bin/baedeker --spec=docker -J.baedeker/vendor/ --generator=docker_compose=.baedeker/.bdk-env --generator=docker_compose_discover=.baedeker/.bdk-env/discover.env --secret=file=.baedeker/.bdk-env/secret --tla-str=relay_spec=rococo-local --input-modules='lib:baedeker-library/ops/nginx.libsonnet' --input-modules='lib:baedeker-library/ops/devtools.libsonnet' --tla-str=repoDir=$(realpath .baedeker/..) .baedeker/forkless-data.jsonnet --tla-str=forked_spec=subtensor --tla-str=fork_source=wss://entrypoint-finney.opentensor.ai .baedeker/rewrites.jsonnet
121+
122+
- name: Prepare genesis with data for artifact upload
123+
run: |
124+
mkdir -p ${{ github.workspace }}/finney-spec
125+
cp .baedeker/.bdk-env/specs/subtensor.json ${{ github.workspace }}/finney-spec/
126+
127+
- name: Prepare secrets for artifact upload
128+
run: |
129+
mkdir -p ${{ github.workspace }}/finney-spec
130+
mkdir -p ${{ github.workspace }}/finney-spec/secret
131+
cp -r .baedeker/.bdk-env/secret/* ${{ github.workspace }}/finney-spec/secret
132+
133+
- name: Upload spec and secrets as an artifact
134+
uses: actions/upload-artifact@v3
135+
with:
136+
name: finney-state
137+
path: ${{ github.workspace }}/finney-spec/
138138

139139
# runs localnet with finney state
140140
run-local-chain:
141-
# needs: download-finney-state
141+
needs: download-finney-state
142142
name: run local chain
143143
runs-on: SubtensorCI
144144
strategy:

0 commit comments

Comments
 (0)