From 965b1764808e437dc1a23bdccf34e6050a32eb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Sok=C3=B3=C5=82?= Date: Tue, 29 Oct 2024 11:33:25 +0000 Subject: [PATCH] Download cache action --- .github/workflows/ci.yaml | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..d31f3d7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,47 @@ +name: Download cache + +on: + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash -leo pipefail {0} + +jobs: + download-cache: + runs-on: ubuntu-latest + steps: + - name: Download cache + uses: actions/cache@v4 + with: + key: 'ccache-macos-12-x86_64-3.10-2024-10-29T11:01:18.936Z' + path: .ccache + + - name: Upload cache + uses: actions/upload-artifact@v4 + with: + path: .ccache + name: artifact_finch_mlir_cache_1 + + - name: remove folder + shell: bash + run: | + rm -rf .ccache + + - name: Download cache 2 + uses: actions/cache@v4 + with: + key: 'ccache-macos-12-x86_64-3.10-2024-10-29T00:06:15.397Z' + path: .ccache + + - name: Upload cache 2 + uses: actions/upload-artifact@v4 + with: + path: .ccache + name: artifact_finch_mlir_cache_2