Skip to content

Commit

Permalink
fix(ci): try workspaces for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
gluax committed Mar 29, 2024
1 parent 7b3ac1f commit 7ed4018
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: snarkos-test

- name: Checkout snarkOS
uses: actions/checkout@v4
with:
repository: AleoNet/snarkOS
path: ../snarkos
path: snarkos

- name: Checkout snarkVM
uses: actions/checkout@v4
with:
repository: AleoNet/snarkVM
path: ../snarkvm
path: snarkvm

- name: Use mold linker
uses: rui314/setup-mold@v1
Expand All @@ -39,6 +41,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
workspaces: snarkos-test
key: cache-v1

- name: Build
Expand All @@ -53,18 +56,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: snarkos-test

- name: Checkout snarkOS
uses: actions/checkout@v4
with:
repository: AleoNet/snarkOS
path: ../snarkos
path: snarkos

- name: Checkout snarkVM
uses: actions/checkout@v4
with:
repository: AleoNet/snarkVM
path: ../snarkvm
path: snarkvm

- name: Use mold linker
uses: rui314/setup-mold@v1
Expand All @@ -76,11 +81,13 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
workspaces: snarkos-test
key: cache-v1

- uses: taiki-e/install-action@nextest

- name: Run tests
working-directory: ./snarkos-test
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
run: cargo +nightly nextest run --all --verbose --fail-fast

0 comments on commit 7ed4018

Please sign in to comment.