From dd75ba43e8ad45638a063b43c0754643786e0a63 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 | 44 ++++++++++++++++++++++ 1 file changed, 44 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..1c88faa --- /dev/null +++ b/.github/workflows/cirrus-runners-cache.yml @@ -0,0 +1,44 @@ +name: Cirrus Runners Cache + +on: + push: + +jobs: + macos: + name: "Test on ${{ matrix.runs_on }}" + + strategy: + matrix: + runs_on: + #- "ubuntu-latest" + - "ghcr.io/cirruslabs/ubuntu-runner-amd64:22.04-sm" + #- "ghcr.io/cirruslabs/macos-sonoma-xcode:latest" + + runs-on: ${{ matrix.runs_on }} + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: 1.22 + + - name: Print environment + run: env + + - name: find /home/admin/actions-runner/ + run: find /home/admin/actions-runner/ + + - name: Cache Binary + id: cache-bin + uses: cirruslabs/cache@v4 + with: + path: testfile + key: testfile + + - name: Generate Binary + if: steps.cache-bin.outputs.cache-hit != 'true' + run: dd if=/dev/urandom of=testfile bs=1024 count=302400 + + - name: Stat Binary + run: stat testfile