Skip to content

Commit

Permalink
Moved cache to compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaMatta98 committed Feb 19, 2024
1 parent 3a7fe01 commit 228edd1
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ jobs:
override: true
profile: minimal

- name: Install system dependencies
run: |
sudo apt update
sudo apt-get install -y \
sudo\
lsb-release\
cmake\
wget\
curl\
- name: Perform Build
run: |
cargo build --release
- uses: Swatinem/rust-cache@v2
with:
# The prefix cache key, this can be changed to start a new cache manually.
Expand Down Expand Up @@ -80,28 +94,3 @@ jobs:
# Can be set to either "github" or "buildjet"
# default: "github"
cache-provider: "github"


- name: Cache Rust dependencies
uses: actions/[email protected]
with:
path: |
~/.cargo
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-rust-

- name: Install system dependencies
run: |
sudo apt update
sudo apt-get install -y \
sudo\
lsb-release\
cmake\
wget\
curl\
- name: Perform Build
run: |
cargo build --release

0 comments on commit 228edd1

Please sign in to comment.