From a6a21641a164b1f7f09d8ac893fd045d2b47f6bd Mon Sep 17 00:00:00 2001 From: billow Date: Fri, 10 May 2024 14:37:12 +0800 Subject: [PATCH] Try to fix rust workflow cache --- .github/workflows/rust.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 32c2846..7c3e4c1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,20 +20,25 @@ jobs: with: repository: rizinorg/rizin ref: refs/heads/dev - path: ${{ github.workspace }}/rizin + path: rizin - name: Cache rizin id: cache-rizin - uses: actions/cache@v4 + uses: actions/cache@v3 with: - path: ${{ github.workspace }}/rizin/build + path: rizin/build key: ${{ runner.os }}-rizin save-always: true - name: Build rizin - working-directory: ${{ github.workspace }}/rizin + working-directory: rizin run: | pip install meson ninja PyYAML meson setup --debug --buildtype=release --prefix=$(realpath $HOME/.local) build ninja install -C build + - if: ${{ steps.cache-rizin.outputs.cache-hit != 'true' }} + working-directory: rizin + name: List the state + continue-on-error: true + run: ls build - name: Setup Rust nightly run: | rustup toolchain install nightly --profile minimal