-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
42 changed files
with
1,046 additions
and
1,688 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,61 @@ | ||
name: Build (Go) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- fix/* | ||
paths-ignore: | ||
- 'smart-contracts/**' | ||
- '**.md' | ||
push: | ||
branches: | ||
- main | ||
- fix/* | ||
paths-ignore: | ||
- 'smart-contracts/**' | ||
- '**.md' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-go: | ||
name: quasar-${{ matrix.targetos }}-${{ matrix.arch }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
arch: [ amd64, arm64 ] | ||
targetos: [ linux ] | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Get git diff | ||
uses: technote-space/get-diff-action@v6.1.2 | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
Makefile | ||
.github/workflows/build.yml | ||
- name: Setup Golang | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.7 | ||
env: | ||
GOOS: ${{ matrix.targetos }} | ||
GOARCH: ${{ matrix.arch }} | ||
- name: Display go version | ||
if: env.GIT_DIFF | ||
run: go version | ||
- name: Build quasarnoded | ||
if: env.GIT_DIFF | ||
run: make build-reproducible-${{ matrix.arch }} | ||
- uses: actions/upload-artifact@v3 | ||
if: env.GIT_DIFF | ||
with: | ||
name: quasarnoded-${{ matrix.targetos }}-${{ matrix.arch }} | ||
path: build/quasarnoded-${{ matrix.targetos }}-${{ matrix.arch }} |
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,31 @@ | ||
name: Store cargo build cache | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/**.rs' | ||
- 'smart-contracts/**.toml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
store-build-cache: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Rust check | ||
run: cargo check | ||
working-directory: smart-contracts | ||
- name: Store dependencies | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: | | ||
~/.cargo | ||
~/go | ||
**/target | ||
key: ${{ runner.os }}-cargo-$GITHUB_SHA | ||
restore-keys: ${{ runner.os }}-cargo |
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,33 @@ | ||
name: CL Vault | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/cl-vault/Cargo.toml' | ||
- 'smart-contracts/contracts/cl-vault/**.rs' | ||
- 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/dex-router-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/cl-vault/Cargo.toml' | ||
- 'smart-contracts/contracts/cl-vault/**.rs' | ||
- 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/dex-router-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unit-test: | ||
uses: ./.github/workflows/rust_basic.yml | ||
with: | ||
target: 'contracts/cl-vault' | ||
test-tube: | ||
uses: ./.github/workflows/rust_test_tube.yml | ||
with: | ||
contract: 'cl-vault' | ||
dex_router_osmosis: true |
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,28 @@ | ||
name: Dex Router (osmosis) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/dex-router-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/dex-router-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unit-test: | ||
uses: ./.github/workflows/rust_basic.yml | ||
with: | ||
target: 'contracts/dex-router-osmosis' | ||
test-tube: | ||
uses: ./.github/workflows/rust_test_tube.yml | ||
with: | ||
contract: 'dex-router-osmosis' |
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,24 @@ | ||
name: LST Adapter (osmosis) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/lst-adapter-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/lst-adapter-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/lst-adapter-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/lst-adapter-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unit-test: | ||
uses: ./.github/workflows/rust_basic.yml | ||
with: | ||
target: 'contract/lst-adapter-osmosis' |
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,24 @@ | ||
name: LST Dex Adapter (osmosis) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/lst-dex-adapter-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/lst-dex-adapter-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'smart-contracts/contracts/lst-dex-adapter-osmosis/Cargo.toml' | ||
- 'smart-contracts/contracts/lst-dex-adapter-osmosis/**.rs' | ||
- '.github/workflows/**.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unit-test: | ||
uses: ./.github/workflows/rust_basic.yml | ||
with: | ||
target: 'contract/lst-dex-adapter-osmosis' |
Oops, something went wrong.