-
Notifications
You must be signed in to change notification settings - Fork 163
50 lines (42 loc) · 1.37 KB
/
baedeker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Baedeker
on:
schedule:
- cron: "0 */3 * * *" # Runs every 3 hours
workflow_dispatch: # Allows manual dispatch
push:
pull_request:
jobs:
build-and-publish-baedeker-config:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Install Rust
uses: actions-rs/[email protected]
with:
toolchain: stable
components: rustfmt
profile: minimal
- name: Clone Baedeker repository
run: |
git clone https://github.com/UniqueNetwork/baedeker.git
cd baedeker
echo "[workspace]" >> Cargo.toml
cargo build --release
sudo cp ./target/release/baedeker /usr/local/bin
sudo chmod +x /usr/local/bin/baedeker
cd ..
- name: Create chain spec and secrets
run: |
sudo ./baedeker/up.sh ./baedeker/forkless-data.jsonnet --tla-str=forked_spec=subtensor --tla-str=fork_source=wss://entrypoint-finney.opentensor.ai
- name: Upload chain spec and secrets as artifact
uses: actions/upload-artifact@v2
with:
name: baedeker-config
path: |
baedeker/.bdk-env/specs/subtensor.json
baedeker/.bdk-env/secrets