Skip to content

Commit

Permalink
Merge pull request #109 from astroport-fi/feat/astroport_governance_v3
Browse files Browse the repository at this point in the history
feat: release Astroport Governance v3
  • Loading branch information
epanchee authored Apr 5, 2024
2 parents 182dd5b + 67cba90 commit c3f3de1
Show file tree
Hide file tree
Showing 143 changed files with 23,152 additions and 10,265 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/check_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Compiled binaries checks

on:
pull_request:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
check-artifacts-size:
runs-on: ubuntu-latest
name: Check Artifacts Size
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout sources
uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin
~/.cargo/git/checkouts
~/.cargo/git/db
~/.cargo/registry/cache
~/.cargo/registry/index
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build Artifacts
run: |
docker run \
-v "$GITHUB_WORKSPACE":/code \
-v ~/.cargo/registry:/usr/local/cargo/registry \
-v ~/.cargo/git:/usr/local/cargo/git \
cosmwasm/workspace-optimizer:0.15.1
- name: Save artifacts cache
uses: actions/cache/save@v3
with:
path: artifacts
key: ${{ runner.os }}-artifacts-${{ hashFiles('**/Cargo.lock') }}

- name: Check Artifacts Size
run: |
$GITHUB_WORKSPACE/scripts/check_artifacts_size.sh
cosmwasm-check:
runs-on: ubuntu-latest
name: Cosmwasm check
needs: check-artifacts-size
steps:
# We need this only to get Cargo.lock
- name: Checkout sources
uses: actions/checkout@v3
- name: Restore cached artifacts
uses: actions/cache/restore@v3
with:
path: artifacts
key: ${{ runner.os }}-artifacts-${{ hashFiles('**/Cargo.lock') }}
fail-on-cache-miss: true
- name: Install cosmwasm-check
# Uses --debug for compilation speed
run: cargo install --debug --version 1.4.0 cosmwasm-check
- name: Cosmwasm check
run: |
cosmwasm-check $GITHUB_WORKSPACE/artifacts/*.wasm --available-capabilities staking,iterator,stargate,cosmwasm_1_1
24 changes: 0 additions & 24 deletions .github/workflows/check_artifacts_size.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.64.0
toolchain: 1.75.0
override: true

- name: Run cargo-tarpaulin
Expand All @@ -45,7 +45,7 @@ jobs:
version: '0.22.0'
args: '--timeout 300'

- name: Upload coverage reports to Codecov
- name: Upload to codecov.io
if: github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

Expand All @@ -37,7 +37,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.75.0
override: true
components: rustfmt, clippy

Expand Down
Loading

0 comments on commit c3f3de1

Please sign in to comment.