From 7ed40180fd9401a8909022bea45d6192d3641f03 Mon Sep 17 00:00:00 2001 From: gluax <16431709+gluax@users.noreply.github.com> Date: Thu, 28 Mar 2024 19:05:46 -0700 Subject: [PATCH] fix(ci): try workspaces for caching --- .github/workflows/rust.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e3de4638..28043e44 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 @@ -39,6 +41,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: + workspaces: snarkos-test key: cache-v1 - name: Build @@ -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 @@ -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