From 6558ab67b60c483ab40769dbd13bf8e651acbbbf Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Fri, 29 Mar 2024 17:36:53 +0400 Subject: [PATCH] Test Cirrus Runners Cache --- .github/workflows/cirrus-runners-cache.yml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/cirrus-runners-cache.yml diff --git a/.github/workflows/cirrus-runners-cache.yml b/.github/workflows/cirrus-runners-cache.yml new file mode 100644 index 0000000..1cceb0c --- /dev/null +++ b/.github/workflows/cirrus-runners-cache.yml @@ -0,0 +1,40 @@ +name: Cirrus Runners Cache + +on: + push: + +jobs: + macos: + name: "${{ matrix.runs_on }} + ${{ matrix.cache_action }}" + + strategy: + matrix: + runs_on: + - "ubuntu-latest" + - "ghcr.io/cirruslabs/ubuntu-runner-amd64:22.04-sm" + - "ghcr.io/cirruslabs/macos-sonoma-xcode:latest" + uses: + - "actions/cache@v4" + - "cirruslabs/cache@v4" + + runs-on: ${{ matrix.runs_on }} + + steps: + - uses: actions/checkout@v4 + + - name: Print environment + run: env + + - name: Cache Binary + id: cache + uses: ${{ matrix.uses }} + with: + path: testfile + key: try-1 + + - name: Generate Binary + if: steps.cache.outputs.cache-hit != 'true' + run: dd if=/dev/urandom of=testfile bs=1024 count=512000 + + - name: Stat Binary + run: stat testfile