Skip to content

Commit e7de6dd

Browse files
authored
Merge branch 'main' into benjamin
2 parents 2d2a326 + f5ea645 commit e7de6dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3373
-313
lines changed

.github/actions/get-branch/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ runs:
2222
id: get_branch
2323
shell: bash
2424
env:
25-
HEAD_REF: ${{ github.head_ref }}
25+
HEAD_REF: ${{ github.head_ref || github.ref }}
2626
run: |
2727
echo "##[set-output name=branch_name;]$(echo ${HEAD_REF#refs/heads/} | tr / -)"
28-
echo "##[set-output name=branch_appname;]$(printf ${HEAD_REF#refs/head/} | tr / - | tr '[:upper:]' '[:lower:]' | tr -c '[a-z0-9-.]' '-')"
28+
echo "##[set-output name=branch_appname;]$(printf ${HEAD_REF#refs/heads/} | tr / - | tr '[:upper:]' '[:lower:]' | tr -c '[a-z0-9-.]' '-')"
2929
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"

.github/scripts/run_consensus.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -euo pipefail
55
# default node count
66
# change when increasing the number of node containers
77
NODE_COUNT=5
8+
MIN_VALIDATOR_COUNT=4
89

910
export NODE_IMAGE=aleph-node:latest
1011

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and push cliain docker image
2+
3+
on:
4+
push:
5+
paths:
6+
- 'bin/cliain/**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-image:
11+
name: Build binary
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: GIT | Checkout source code
15+
uses: actions/checkout@v2
16+
17+
- name: Install Rust toolchain
18+
uses: actions-rs/toolchain@v1
19+
20+
- name: Cargo | Build release binary
21+
run: |
22+
cd ./bin/cliain && cargo build --release
23+
24+
- name: GIT | Get branch name and commit SHA
25+
id: get_branch
26+
uses: ./.github/actions/get-branch
27+
28+
- name: Login to ECR
29+
uses: docker/login-action@v1
30+
with:
31+
registry: public.ecr.aws
32+
username: ${{ secrets.AWS_MAINNET_ACCESS_KEY_ID }}
33+
password: ${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }}
34+
35+
- name: Set up Docker Buildx
36+
id: buildx
37+
uses: docker/setup-buildx-action@master
38+
39+
- name: Build and push latest docker image
40+
id: build-image
41+
env:
42+
RELEASE_IMAGE: public.ecr.aws/p6e8q1z1/cliain:${{ steps.get_branch.outputs.branch_name == 'main' && 'latest' || steps.get_branch.outputs.branch_name }}
43+
uses: docker/build-push-action@v2
44+
with:
45+
context: ./bin/cliain
46+
builder: ${{ steps.buildx.outputs.name }}
47+
file: ./bin/cliain/Dockerfile
48+
push: true
49+
tags: ${{ env.RELEASE_IMAGE }}

Cargo.lock

Lines changed: 63 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[workspace]
22

33
members = [
4+
"aggregator",
45
"bin/node",
56
"bin/runtime",
67
"finality-aleph",

aggregator/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "aggregator"
3+
version = "0.2.0"
4+
authors = ["Cardinal Cryptography"]
5+
edition = "2021"
6+
license = "Apache 2.0"
7+
8+
9+
[dependencies]
10+
aleph-bft-rmc = "0.5.0"
11+
aleph-bft-types = "0.6.0"
12+
13+
async-trait = "0.1"
14+
futures = "0.3"
15+
codec = { package = "parity-scale-codec", version = "3.0", default-features = false, features = ["derive"] }
16+
tokio = { version = "1.17", features = [ "sync", "macros", "time", "rt-multi-thread" ] }
17+
log = "0.4"

0 commit comments

Comments
 (0)