From be90cbb3da7833cf6b8d40cbb4416f9b6c3f0b1e Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Fri, 8 Sep 2023 13:41:06 +0200 Subject: [PATCH] ci: work around cargo-zigbuild cache bug --- .github/workflows/build.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d593be1fb..ebe9b49db 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -172,6 +172,13 @@ jobs: --features dist \ -p mas-cli + - name: Create CACHEDIR.TAG files + # This is a workaround for `cargo-zigbuild` not creating the CACHEDIR.TAG files + # https://github.com/rust-cross/cargo-zigbuild/issues/165 + run: | + touch target/CACHEDIR.TAG + touch target/${{ matrix.arch }}-apple-darwin/CACHEDIR.TAG + - name: Download the artifacts uses: actions/download-artifact@v3.0.2 with: