Skip to content

Commit

Permalink
ci: check build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan authored Jan 7, 2025
1 parent 1164117 commit 786d45c
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/stellar-build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test Stellar contracts
name: Build and Test Stellar Contracts
on:
push:
branches:
Expand All @@ -14,6 +14,7 @@ on:
defaults:
run:
working-directory: contracts/soroban

jobs:
Build:
name: Build Stellar Contracts
Expand All @@ -24,6 +25,30 @@ jobs:
with:
submodules: true

- name: Cache Cargo Registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo Index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache Build Target
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -38,6 +63,5 @@ jobs:
cargo install --locked soroban-cli
- name: Build & Test Stellar Contracts
working-directory: contracts/soroban
run: |
soroban contract build
soroban contract build

0 comments on commit 786d45c

Please sign in to comment.