Skip to content

Commit ef364cc

Browse files
Merge pull request #1266 from dfinity/msum/staking-example-rust
feat: Add an example of how to stake a neuron from a local identity
2 parents ea39fa1 + 896afc0 commit ef364cc

File tree

9 files changed

+3434
-0
lines changed

9 files changed

+3434
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
/rust/send_http_get/ @dfinity/growth
7979
/rust/send_http_post/ @dfinity/growth
8080
/rust/simd/ @dfinity/execution
81+
/rust/stake_neuron_from_cli @dfinity/governance-team
8182
/rust/threshold-ecdsa/ @dfinity/crypto-team
8283
/rust/threshold-schnorr/ @dfinity/crypto-team
8384
/rust/tokenmania/ @dfinity/ninja-devs
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: rust-stake-neuron-from-cli
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- rust/stake_neuron_from_cli/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/rust-stake-neuron-from-cli-example.yaml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
rust-stake-neuron-from-cli-example-darwin:
17+
runs-on: macos-15
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Provision Darwin
21+
run: bash .github/workflows/provision-darwin.sh
22+
- name: Rust Stake Neuron from CLI Darwin
23+
run: |
24+
pushd rust/stake_neuron_from_cli
25+
./setup_and_run.sh
26+
popd
27+
rust-stake-neuron-from-cli-example-linux:
28+
runs-on: ubuntu-22.04
29+
steps:
30+
- uses: actions/checkout@v1
31+
- name: Provision Linux
32+
run: bash .github/workflows/provision-linux.sh
33+
- name: Rust Stake Neuron from CLI Linux
34+
run: |
35+
pushd rust/stake_neuron_from_cli
36+
./setup_and_run.sh
37+
popd

0 commit comments

Comments
 (0)