Skip to content

Commit

Permalink
chore(gh actions): bump versions; remove unnecessary steps
Browse files Browse the repository at this point in the history
  • Loading branch information
epanchee committed Feb 7, 2024
1 parent 5107893 commit c82abcd
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 33 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/check_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jobs:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.GOV_PRIVATE_KEY }}
${{ secrets.CORE_PRIVATE_KEY }}

- uses: actions/cache@v3
if: always()
Expand All @@ -41,10 +36,6 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-
- run: |
git config url."ssh://[email protected]/astroport-fi/hidden_astroport_governance.git".insteadOf "https://github.com/astroport-fi/hidden_astroport_governance"
git config url."ssh://[email protected]/astroport-fi/hidden_astroport_core.git".insteadOf "https://github.com/astroport-fi/hidden_astroport_core"
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -84,7 +75,7 @@ jobs:
-v "$GITHUB_WORKSPACE":/code \
-v ~/.cargo/registry:/usr/local/cargo/registry \
-v ~/.cargo/git:/usr/local/cargo/git \
cosmwasm/workspace-optimizer:0.12.13
cosmwasm/workspace-optimizer:0.15.0
- name: Save artifacts cache
uses: actions/cache/save@v3
Expand Down Expand Up @@ -114,7 +105,7 @@ jobs:
fail-on-cache-miss: true
- name: Install cosmwasm-check
# Uses --debug for compilation speed
run: cargo install --debug --version 1.4.0 cosmwasm-check
run: cargo install --debug --version 1.5.0 cosmwasm-check
- name: Cosmwasm check
run: |
cosmwasm-check $GITHUB_WORKSPACE/artifacts/*.wasm --available-capabilities cosmwasm_1_1,iterator,stargate
11 changes: 1 addition & 10 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,8 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.GOV_PRIVATE_KEY }}
${{ secrets.CORE_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v2
- run: |
git config url."ssh://[email protected]/astroport-fi/hidden_astroport_governance.git".insteadOf "https://github.com/astroport-fi/hidden_astroport_governance"
git config url."ssh://[email protected]/astroport-fi/hidden_astroport_core.git".insteadOf "https://github.com/astroport-fi/hidden_astroport_core"
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ jobs:
~/.cargo/registry/cache
~/.cargo/registry/index
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# docker can't pull private sources, so we fail if cache is missing
fail-on-cache-miss: true
- 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.12.13
cosmwasm/workspace-optimizer:0.15.0
tar -zcvf cosmwasm-artifacts.tar.gz artifacts
- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.GOV_PRIVATE_KEY }}
${{ secrets.CORE_PRIVATE_KEY }}
- name: Checkout sources
uses: actions/checkout@v3

- uses: actions/cache@v3
if: always()
Expand All @@ -42,10 +38,6 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-
- run: |
git config url."ssh://[email protected]/astroport-fi/hidden_astroport_governance.git".insteadOf "https://github.com/astroport-fi/hidden_astroport_governance"
git config url."ssh://[email protected]/astroport-fi/hidden_astroport_core.git".insteadOf "https://github.com/astroport-fi/hidden_astroport_core"
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
17 changes: 17 additions & 0 deletions Cargo.lock

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

0 comments on commit c82abcd

Please sign in to comment.