Skip to content

Commit

Permalink
Community sidechain branch update - teerex followup, pallet-encointer…
Browse files Browse the repository at this point in the history
…-reputations-commitment (#343)

* Faucet (#333)

* integrate faucet locally

* benchmarking for faucet and reputation commitments

* implement faucet cli

* implement faucet integration tests

* fix cli and weights

* weights

* clippy

* unpatch pallets

* taplo fmt

* update cargo.lock

* bump v1.4.0

* [cli] add list-reputables (#332)

* add list-reputables

* naming and underflow fix

* fix option query and max numbers

* refactor names and change to correct storage. not yet ok

* extracting AccountId key from doublemap storagekey tail

* count noshows as well

* fmt

* fix the merge

---------

Co-authored-by: Alain Brenzikofer <[email protected]>
Co-authored-by: brenzi <[email protected]>
Co-authored-by: Alain Brenzikofer <[email protected]>

* bump 1.4.1

* whitelist bypass integration (#335)

* whitelist bypass integration

* bump versions

---------

Co-authored-by: Alain Brenzikofer <[email protected]>

* faucet cli improvements (#337)

* faucet cli imporvements

* add help for whitelist

* fix hardcoded event index

---------

Co-authored-by: Alain Brenzikofer <[email protected]>

* fix try runtime (#342)

* fix missing feature flags

* fix node build

* add try-runtime and benchmarks to CI

* fmt

* [node] fix feature flag

---------

Co-authored-by: Christian Langenbacher <[email protected]>

* community metadata extension migration (#341)

* integrate communitymetadata extension. builds

* rename ceremonies migration accordingly

* add try-runtime and benchmarks to CI

* point to explicit release branch of pallets

* bump versions

* fmt

* lift patches

* minor version bump

* GHA: fix deprecation warnings (save-state, set-output, Nodejs12) (#338)

* gha: bump rust-cache action

* gha: bump setup-python action

* gha: remove deprecated set-output commands

* gha: bump cancel-action action

* gha: bump cache action

* gha: bump docker/login-action

* gha: bump docker/setup-buildx-action

* gha: bump actions/checkout

* gha: bump docker/build-push-action

* gha: bump dev-drprasad/delete-tag-and-release

* gha: specify actions/checkout action version

* gha: specify actions/download-artifact action version

* extend changes to new job

---------

Co-authored-by: brenzi <[email protected]>
Co-authored-by: Alain Brenzikofer <[email protected]>

* Faucet (#333)

* integrate faucet locally

* benchmarking for faucet and reputation commitments

* implement faucet cli

* implement faucet integration tests

* fix cli and weights

* weights

* clippy

* unpatch pallets

* taplo fmt

* update cargo.lock

* teerex followup

* client: remove mistakenly added pallet-encointer-communities

* client: add logs to bootstrap_demo_community.py

---------

Co-authored-by: pifragile <[email protected]>
Co-authored-by: Alain Brenzikofer <[email protected]>
Co-authored-by: Bigna Härdi <[email protected]>
Co-authored-by: brenzi <[email protected]>
Co-authored-by: Alain Brenzikofer <[email protected]>
Co-authored-by: Christian Langenbacher <[email protected]>
Co-authored-by: echevrier <[email protected]>
  • Loading branch information
8 people authored Aug 23, 2023
1 parent 5dfcc99 commit 8790357
Show file tree
Hide file tree
Showing 28 changed files with 2,234 additions and 827 deletions.
58 changes: 47 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: rustup show

- name: Cache Rust Dependecies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
Expand All @@ -50,7 +50,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build
run: cargo build --release --features skip-ias-check
run: cargo build --release
- name: Upload node
uses: actions/upload-artifact@v3
with:
Expand All @@ -62,6 +62,42 @@ jobs:
name: encointer-client-notee-${{ github.sha }}
path: target/release/encointer-client-notee

build-try-runtime-and-benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install protoc
run: sudo apt-get install protobuf-compiler

# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: rustup show

- name: Cache Rust Dependecies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
enclave/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build
run: cargo build --release --features try-runtime,runtime-benchmarks
- name: Upload node
uses: actions/upload-artifact@v3
with:
name: encointer-node-notee-try-runtime-and-benchmarks-${{ github.sha }}
path: target/release/encointer-node-notee
- name: Upload CLI client
uses: actions/upload-artifact@v3
with:
name: encointer-client-notee-try-runtime-and-benchmarks-${{ github.sha }}
path: target/release/encointer-client-notee

build-runtimes:
name: Build Runtimes
runs-on: ubuntu-latest
Expand All @@ -72,7 +108,7 @@ jobs:
- uses: actions/checkout@v3

- name: Cache target dir
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/runtime/target"
key: srtool-target-${{ matrix.runtime }}-${{ github.sha }}
Expand Down Expand Up @@ -154,7 +190,7 @@ jobs:
run: rustup show

- name: Cache Rust Dependecies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
Expand Down Expand Up @@ -190,7 +226,7 @@ jobs:
- name: Setup Rust toolchain
run: rustup show

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.rust-target }}-${{ matrix.check }}

Expand All @@ -208,7 +244,7 @@ jobs:

- name: Fail-fast; cancel other jobs
if: failure()
uses: andymckay/cancel-action@0.2
uses: andymckay/cancel-action@0.3

integration-test:
name: ${{ matrix.test }}
Expand All @@ -218,15 +254,15 @@ jobs:
matrix:
test: [ test_bootstrap_demo_community.sh, test_bot_community.sh, test_register_business.sh ]
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3

- name: download build artifacts
uses: actions/download-artifact@master
uses: actions/download-artifact@v3
with:
name: encointer-node-notee-${{ github.sha }}

- name: download build artifacts
uses: actions/download-artifact@master
uses: actions/download-artifact@v3
with:
name: encointer-client-notee-${{ github.sha }}

Expand All @@ -238,7 +274,7 @@ jobs:
mv encointer-*-notee target/release
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: install py dependencies
Expand Down Expand Up @@ -333,7 +369,7 @@ jobs:
ls
ls "${{ matrix.runtime }}-runtime-${{ github.sha }}"
runtime_ver="$(ruby -e 'require "./scripts/github/lib.rb"; puts get_runtime()')"
echo "::set-output name=runtime_ver::$runtime_ver"
echo "{runtime_ver}={$runtime_ver}" >> $GITHUB_OUTPUT
- name: Upload compact ${{ matrix.runtime }} wasm
uses: actions/upload-release-asset@v1
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/delete-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
name: Delete image from ghcr.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: echo "tag"="{${GITHUB_REF#refs/*/}}" >> $GITHUB_OUTPUT

- name: Check output
env:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
-H "Authorization: JWT ${TOKEN}"
- name: Delete tag as well
uses: dev-drprasad/[email protected].0
uses: dev-drprasad/[email protected].1
with:
delete_release: false # it is triggered by release deletion
tag_name: ${{ steps.vars.outputs.tag }} # tag name to delete
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Push to Dockerhub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Download encointer-client-notee from release
uses: dsaltares/fetch-gh-release-asset@master
Expand All @@ -29,33 +29,33 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache-node
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to Dockerhub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
context: .
Expand All @@ -66,7 +66,7 @@ jobs:

- name: Build and push
id: docker_build_node
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: Dockerfile-node
push: true
Expand Down
Loading

0 comments on commit 8790357

Please sign in to comment.