-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniil Lashin
committed
Sep 20, 2021
0 parents
commit dadfcf6
Showing
338 changed files
with
134,764 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*/node_modules | ||
*/target/* | ||
.DS_Store | ||
.dockerignore | ||
.git | ||
.gitignore |
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 @@ | ||
*.sol linguist-language=Solidity |
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,6 @@ | ||
# CODEOWNERS: https://help.github.com/articles/about-codeowners/ | ||
|
||
module/ @jackzampolin @mvid @levicook | ||
orchestrator/ @zmanian @levicook @hannydevelop | ||
solidity/ @zmanian @jackzampolin @jtremback | ||
tests/ @mvid @levicook @jackzampolin |
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,90 @@ | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
name: Automated Release | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
release: | ||
name: build-release-assets | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Setup Golang Environemnt | ||
- name: setup-go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16 | ||
# Setup Rust Environment | ||
- name: setup-rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
# Setup Node Environment | ||
- name: setup-node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
# Checkout repository code | ||
- name: checkout-code | ||
uses: actions/checkout@v2 | ||
# Golang Cache | ||
- name: go-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('module/go.sum') }} | ||
# Rust Cache | ||
- name: rust-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
orchestrator/target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('orchestrator/Cargo.lock') }} | ||
# Node Cache | ||
- name: node-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('solidity/package-lock.json') }} | ||
# Build Go Artifacts | ||
- name: build-go | ||
run: cd module && make build | ||
# Build Node and Solidity Artifacts | ||
- name: build-node-solidity | ||
run: cd solidity && npm ci && npm run typechain && npm run compile-deployer | ||
# Build Rust Artifacts | ||
- name: build-rust | ||
run: cd orchestrator && cargo install cross && cross build --target x86_64-unknown-linux-musl --release --all | ||
# Create Release and Upload artifacts | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
orchestrator/target/x86_64-unknown-linux-musl/release/client | ||
orchestrator/target/x86_64-unknown-linux-musl/release/gorc | ||
orchestrator/target/x86_64-unknown-linux-musl/release/orchestrator | ||
orchestrator/target/x86_64-unknown-linux-musl/release/register-delegate-keys | ||
orchestrator/target/x86_64-unknown-linux-musl/release/relayer | ||
orchestrator/target/x86_64-unknown-linux-musl/release/test-runner | ||
module/build/gravity | ||
solidity/artifacts/contracts/Gravity.sol/Gravity.json | ||
solidity/artifacts/contracts/TestERC20A.sol/TestERC20A.json | ||
solidity/artifacts/contracts/TestERC20B.sol/TestERC20B.json | ||
solidity/artifacts/contracts/TestERC20C.sol/TestERC20C.json | ||
solidity/contract-deployer | ||
LICENSE | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,30 @@ | ||
name: Go tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
go-test: | ||
permissions: | ||
contents: read | ||
packages: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16 | ||
- name: Checkout Branch | ||
uses: actions/checkout@v2 | ||
- name: Create Go cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('module/go.sum') }} | ||
- name: Run Go tests | ||
run: cd module && make test |
Oops, something went wrong.