Skip to content

Test Cirrus Runners Cache #1

Test Cirrus Runners Cache

Test Cirrus Runners Cache #1

name: GitHub Actions Cache
on:
push:
jobs:
actions-cache:
name: "${{ matrix.runs_on }} + actions/cache@v4"
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
- name: Print environment
run: env
- name: Cache Binary
id: cache
uses: actions/cache@v4
with:
path: testfile
key: "actions-cache-${{ matrix.runs_on }}-attempt-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
cirruslabs-cache:
name: "${{ matrix.runs_on }} + cirruslabs/cache@v4"
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
- name: Print environment
run: env
- name: Cache Binary
id: cache
uses: cirruslabs/cache@v4
with:
path: testfile
key: "cirruslabs-cache-${{ matrix.runs_on }}-attempt-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