-
Notifications
You must be signed in to change notification settings - Fork 163
62 lines (52 loc) · 1.54 KB
/
update-chainspec.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
name: Update Chainspecs
concurrency:
group: update-chainspec-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
workflow_dispatch:
inputs:
verbose:
description: "Output more information when triggered manually"
required: false
default: ""
env:
CARGO_TERM_COLOR: always
VERBOSE: ${{ github.events.input.verbose }}
jobs:
update-chainspecs:
runs-on: SubtensorCI
permissions:
contents: write
if: >
github.event.pull_request.head.ref != 'devnet-ready' &&
github.event.pull_request.head.ref != 'devnet' &&
github.event.pull_request.head.ref != 'testnet' &&
github.event.pull_request.head.ref != 'main'
strategy:
matrix:
rust-target:
- x86_64-unknown-linux-gnu
os:
- ubuntu-latest
include:
- os: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Utilize Shared Rust Cache
uses: Swatinem/[email protected]
with:
key: ubuntu-latest-target/x86_64-unknown-linux-gnu
- name: Build chainspecs
run: ./scripts/build_all_chainspecs.sh
- uses: stefanzweifel/git-auto-commit-action@v5
name: Commit any updated chainspecs
with:
commit_message: Update chainspecs