Skip to content

Commit

Permalink
fix check_artifacts workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
epanchee committed Aug 10, 2023
1 parent 0800f46 commit 316b2e6
Showing 1 changed file with 3 additions and 46 deletions.
49 changes: 3 additions & 46 deletions .github/workflows/check_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,59 +8,18 @@ on:

env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
fetch_deps:
name: Fetch cargo dependencies
check-artifacts-size:
runs-on: ubuntu-latest

name: Check Artifacts Size
needs: fetch_deps
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.GOV_PRIVATE_KEY }}
- uses: actions/cache@v3
if: always()
with:
path: |
~/.cargo/bin
~/.cargo/git/checkouts
~/.cargo/git/db
~/.cargo/registry/cache
~/.cargo/registry/index
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
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"
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.0
override: true

- name: Fetch cargo deps
uses: actions-rs/cargo@v1
with:
command: fetch
args: --locked

check-artifacts-size:
runs-on: ubuntu-latest
name: Check Artifacts Size
needs: fetch_deps
steps:
- name: Checkout sources
uses: actions/checkout@v3

Expand All @@ -73,8 +32,6 @@ 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: |
Expand Down

0 comments on commit 316b2e6

Please sign in to comment.