test
List Runner Tool Cache (Persistent) / check-tool-cache (push) Failing after 1s
Test Gitea Actions support Matrix? / build (18, ubuntu-latest) (push) Successful in 38s
Test Gitea Actions support Matrix? / build (16, ubuntu-latest) (push) Successful in 39s
Test Gitea Actions support Matrix? / build (14, ubuntu-latest) (push) Successful in 42s
Output Information / info (push) Successful in 7s
Build Workflow / Build (push) Successful in 2m20s
Build Workflow / Deploy (push) Has been cancelled
List Runner Tool Cache (Persistent) / check-tool-cache (push) Failing after 1s
Test Gitea Actions support Matrix? / build (18, ubuntu-latest) (push) Successful in 38s
Test Gitea Actions support Matrix? / build (16, ubuntu-latest) (push) Successful in 39s
Test Gitea Actions support Matrix? / build (14, ubuntu-latest) (push) Successful in 42s
Output Information / info (push) Successful in 7s
Build Workflow / Build (push) Successful in 2m20s
Build Workflow / Deploy (push) Has been cancelled
This commit is contained in:
@@ -1,24 +1,37 @@
|
||||
name: List Runner Tool Cache
|
||||
name: List Runner Tool Cache (Persistent)
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Allows you to manually trigger the workflow from the Gitea UI
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
check-tool-cache:
|
||||
runs-on: ubuntu-latest # Or whatever runner label you use (e.g., 'linux-amd64')
|
||||
runs-on: ubuntu-latest # Or your runner label
|
||||
|
||||
# Define the container that runs your steps
|
||||
container:
|
||||
image: ubuntu-latest # A common image used with act-runner, or your custom image
|
||||
volumes:
|
||||
# Map the persistent 'act-toolcache' Docker volume from your host
|
||||
# to the /toolcache path inside this job container.
|
||||
# This makes the /toolcache directory persistent.
|
||||
- act-toolcache:/toolcache
|
||||
|
||||
# Crucial: Set the environment variable for the tool cache path
|
||||
env:
|
||||
# This variable now tells nektos/act to use the path where the persistent
|
||||
# volume is mounted.
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3 # Standard action to get your code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5 # Using v5 for more recent Go versions
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21.x' # Install a specific Go version that will be cached
|
||||
go-version: '1.21.x'
|
||||
|
||||
- name: List contents of /toolcache
|
||||
run: |
|
||||
@@ -30,7 +43,7 @@ jobs:
|
||||
echo "--- Listing contents of /toolcache/go ---"
|
||||
ls -F /toolcache/go || echo "/toolcache/go does not exist or is empty"
|
||||
|
||||
- name: List contents of /opt/hostedtoolcache (for comparison)
|
||||
- name: List contents of /opt/hostedtoolcache (for comparison - will likely be empty if not explicitly mounted here)
|
||||
run: |
|
||||
echo "--- Listing contents of /opt/hostedtoolcache (for comparison) ---"
|
||||
ls -F /opt/hostedtoolcache || echo "/opt/hostedtoolcache does not exist or is empty"
|
||||
|
||||
Reference in New Issue
Block a user