-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:near/mpc-recovery into phuong/fe…
…at/flamegraph
- Loading branch information
Showing
39 changed files
with
4,193 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Integration (Multichain) | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
|
||
env: | ||
RUSTFLAGS: -D warnings | ||
jobs: | ||
test: | ||
name: Test | ||
strategy: | ||
matrix: | ||
# FIXME: macos-latest-xl is disabled since colima is erroring out right now | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Docker | ||
if: ${{ matrix.os == 'macos-latest-xl' }} | ||
run: | | ||
brew install docker | ||
colima start | ||
# Colima does not expose the Docker socket by default, we have to symlink it | ||
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running | ||
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pull Relayer & Sandbox Docker Images | ||
run: | | ||
docker pull ghcr.io/near/pagoda-relayer-rs-fastauth | ||
docker pull ghcr.io/near/sandbox | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: Dockerfile.multichain | ||
tags: near/mpc-recovery-node | ||
load: true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1.1.2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Compile Contract | ||
run: cargo build -p mpc-contract --target wasm32-unknown-unknown --release | ||
|
||
- name: Build MPC Recovery Binary Locally | ||
run: | | ||
cargo build -p mpc-recovery-node --release | ||
- name: Test | ||
run: cargo test -p mpc-recovery-integration-tests multichain --jobs 1 -- --test-threads 1 | ||
env: | ||
RUST_LOG: INFO | ||
RUST_BACKTRACE: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.