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