Skip to content

Commit

Permalink
[CI/check-migrations] add rust cache
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Feb 29, 2024
1 parent d3d293b commit bd2fff1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/check-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Check Migrations

on:
push:
branches: ["develop"]
branches: [ "develop" ]
pull_request:
branches: ["develop"]
branches: [ "develop" ]
workflow_dispatch:

# Cancel a currently running workflow from the same PR, branch or tag when a new workflow is
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
echo "runtime=$TASKS" >> $GITHUB_OUTPUT
check-migrations:
needs: [runtime-matrix]
needs: [ runtime-matrix ]
continue-on-error: true
runs-on: ubuntu-latest
strategy:
Expand All @@ -58,6 +58,11 @@ jobs:
- name: Install rust toolchain from toolchain.toml
run: rustup show

- name: Fetch cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
with:
shared-key: "check-migrations-cache"

- name: Build ${{ matrix.runtime.name }}
run: |
cargo build --release -p ${{ matrix.runtime.package }} --features try-runtime -q --locked
Expand Down

0 comments on commit bd2fff1

Please sign in to comment.