Show cache contents #4
Workflow file for this run
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
name: Test onyx pipeline | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "test-onyx-caching" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ">=1.20.0" | |
cache: true | |
- name: Setup Golang caches | |
id: go-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
onyx/bin | |
key: ${{ runner.os }}-golang-${{ hashFiles('onyx/bin') }} | |
restore-keys: | | |
${{ runner.os }}-golang- | |
- name: Show cache contents | |
run: | | |
ls -ltr onyx/bin | |
- if: ${{ steps.go-cache.outputs.cache-hit != 'true' }} | |
name: Build | |
working-directory: onyx | |
run: | | |
make setup | |
make build |