Skip to content

Commit

Permalink
Merge branch 'master' into peg/attestation-pallet
Browse files Browse the repository at this point in the history
* master:
  Bump serde_json from 1.0.124 to 1.0.125 in the patch-dependencies group (#1007)
  Signing flow with derived accounts (#990)
  Add `network-jumpstart` command to `entropy-test-cli` (#1004)
  Refactor reshare (#994)
  Migrate circle-ci workflow to github actions (#991)
  Delete old keyshare if not in next_signers (#999)
  • Loading branch information
ameba23 committed Aug 15, 2024
2 parents 69dd18e + aa4c3d9 commit 992a4d1
Show file tree
Hide file tree
Showing 35 changed files with 652 additions and 419 deletions.
16 changes: 0 additions & 16 deletions .circleci/config.yml

This file was deleted.

192 changes: 0 additions & 192 deletions .circleci/then.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/actions/install-dependencies/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 'Install Dependencies'
description: 'Install the dependencies and Rust components used across jobs'
runs:
using: "composite"
steps:
- name: Install dependencies
run: |
sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
sudo apt-get update
sudo apt install -y libssl-dev clang libclang-dev protobuf-compiler
shell: bash
- name: Add Rust components
run: |
rustup target add wasm32-unknown-unknown
rustup component add rust-src
shell: bash
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
shell: bash
39 changes: 39 additions & 0 deletions .github/workflows/build-and-run-node-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: "Build and test"
on:
push:
paths:
- "node/**"
- "crates/**"
- "pallets/**"
- "runtime/**"

jobs:
node-test:
runs-on: core-build-runner
steps:
- uses: actions/checkout@v4
- name: Increase swap
run: |
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=8
sudo chmod 0600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
grep Swap /proc/meminfo
- name: Install dependencies
uses: ./.github/actions/install-dependencies/
- name: Build entropy-protocol nodejs package
run: |
cd crates/protocol
make build-nodejs-testing
cd nodejs-test
yarn
cd ../../..
- name: Run `cargo build && cargo test`
run: |
pushd node
cargo build --all-targets --release -j $(nproc)
cargo test --all-targets --release
yarn --cwd ../crates/protocol/nodejs-test test
cargo test -p entropy-tss --release --features=test_helpers -F wasm_test test_wasm
17 changes: 17 additions & 0 deletions .github/workflows/check-chainspecs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: "Check chainspecs"
on: ["push"]

jobs:
check-chainspecs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies/
- name: Check chainspecs
run: |
cargo run -p entropy -- build-spec --raw --chain dev > chainspec-dev-raw.json
cargo run -p entropy -- build-spec --raw --chain integration-tests > chainspec-integration-raw.json
cargo run -p entropy -- build-spec --raw --chain testnet > chainspec-testnet-raw.json
14 changes: 14 additions & 0 deletions .github/workflows/check-doc-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: "Check documentation build"
on: ["push"]

jobs:
check-doc-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies/
- name: Build documentation
run: cargo doc --no-deps
27 changes: 27 additions & 0 deletions .github/workflows/lint-and-check-licenses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "Lint and check licenses"
on: ["push"]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies/
- name: Format and lint
run: |
curl -LsSf https://github.com/tamasfe/taplo/releases/download/0.8.0/taplo-full-linux-x86_64.gz | gunzip -N -d - > ${CARGO_HOME:-~/.cargo}/bin/taplo && chmod +x ${CARGO_HOME:-~/.cargo}/bin/taplo
cargo fmt --check
taplo fmt --check
cargo clippy -- -D warnings
check-licenses:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check licenses with cargo deny
run: |
cargo install --locked cargo-deny
cargo deny --all-features check license
14 changes: 14 additions & 0 deletions .github/workflows/test-runtime-benchmarks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Test: check runtime benchmarks"
on: ["push"]

jobs:
test-runtime-benchmarks:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies/
- name: Check runtime-benchmarks
run: |
pushd node && cargo check --features=runtime-benchmarks
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ At the moment this project **does not** adhere to
- Reshare confirmation ([#965](https://github.com/entropyxyz/entropy-core/pull/965))
- Set inital signers ([#971](https://github.com/entropyxyz/entropy-core/pull/971))
- Add parent key threshold dynamically ([#974](https://github.com/entropyxyz/entropy-core/pull/974))
- TSS attestation endpoint ([#1001](https://github.com/entropyxyz/entropy-core/pull/1001)
- Signing flow with derived accounts ([#990](https://github.com/entropyxyz/entropy-core/pull/990))
- TSS attestation endpoint ([#1001](https://github.com/entropyxyz/entropy-core/pull/1001))
- Add `network-jumpstart` command to `entropy-test-cli` ([#1004](https://github.com/entropyxyz/entropy-core/pull/1004))

### Changed
- Fix TSS `AccountId` keys in chainspec ([#993](https://github.com/entropyxyz/entropy-core/pull/993))
Expand Down
7 changes: 5 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This directory contains the [Threshold Signature Server](https://github.com/entropyxyz/entropy-core/tree/master/crates/threshold-signature-server) and some utility crates related to it:

- [`shared`](https://github.com/entropyxyz/entropy-core/tree/master/crates/shared) - Common types shared by both the chain node and TSS server
- [`shared`](https://github.com/entropyxyz/entropy-core/tree/master/crates/shared) - Common types shared by the chain node and TSS server
- [`kvdb`](https://github.com/entropyxyz/entropy-core/tree/master/crates/kvdb) - An encrypted key-value datastore
- [`protocol`](https://github.com/entropyxyz/entropy-core/tree/master/crates/protocol) - Transport logic for running the Entropy protocols
- [`testing-utils`](https://github.com/entropyxyz/entropy-core/tree/master/crates/testing-utils) - Testing utility methods shared across the workspace
Expand Down
Loading

0 comments on commit 992a4d1

Please sign in to comment.