fix(s3): use us-east-1 region and force S3 cache fetch in CI
All checks were successful
Go CI with S3 Caching / build-and-test (push) Successful in 1m22s
All checks were successful
Go CI with S3 Caching / build-and-test (push) Successful in 1m22s
This commit is contained in:
@@ -21,7 +21,7 @@ inputs:
|
||||
required: false
|
||||
s3-region:
|
||||
description: S3 region name.
|
||||
default: auto
|
||||
default: us-east-1
|
||||
required: false
|
||||
s3-endpoint:
|
||||
description: Optional S3-compatible endpoint URL, for example https://s3.example.com.
|
||||
|
||||
@@ -30,12 +30,13 @@ jobs:
|
||||
env:
|
||||
SCCACHE_AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_AWS_ACCESS_KEY_ID }}
|
||||
SCCACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_REGION: auto
|
||||
AWS_REGION: us-east-1
|
||||
|
||||
- name: Clean Local Go Cache (Start Fresh)
|
||||
run: |
|
||||
echo "Clearing local cache..."
|
||||
go clean -cache
|
||||
rm -rf ~/.cache/go-cache
|
||||
|
||||
- name: Cold Build (Cache Miss / Populates S3)
|
||||
run: |
|
||||
@@ -46,6 +47,7 @@ jobs:
|
||||
run: |
|
||||
echo "Clearing local cache to force remote S3 fetch..."
|
||||
go clean -cache
|
||||
rm -rf ~/.cache/go-cache
|
||||
|
||||
- name: Warm Build (Cache Hit / Fetches from S3)
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user