diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index dda4d3a..d0ceba9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,11 +21,11 @@ jobs: repository: rizinorg/rizin ref: refs/heads/dev path: rizin - - name: Cache rizin + - uses: actions/cache/restore@v4 id: cache-rizin - uses: actions/cache@v2 with: - path: rizin/build + path: | + rizin/build key: ${{ runner.os }}-rizin - name: Build rizin working-directory: rizin @@ -33,11 +33,11 @@ jobs: 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 + - uses: actions/cache/save@v4 + with: + path: | + rizin/build + key: ${{ steps.cache-rizin.outputs.cache-primary-key }} - name: Setup Rust nightly run: | rustup toolchain install nightly --profile minimal