-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b738043
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: edigaryev/cache@redefine | ||
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 |