mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-02-03 07:29:07 +08:00
fix
This commit is contained in:
4
.github/workflows/cloud-runner-integrity.yml
vendored
4
.github/workflows/cloud-runner-integrity.yml
vendored
@@ -58,9 +58,8 @@ jobs:
|
||||
echo "Initial disk space cleanup..."
|
||||
echo "Current disk usage:"
|
||||
df -h
|
||||
# Clean up any leftover k3d clusters/images from previous runs
|
||||
# Clean up any leftover k3d clusters from previous runs
|
||||
k3d cluster delete unity-builder || true
|
||||
k3d image delete --all || true
|
||||
# Stop any existing LocalStack container
|
||||
docker stop localstack-main 2>/dev/null || true
|
||||
docker rm localstack-main 2>/dev/null || true
|
||||
@@ -549,7 +548,6 @@ jobs:
|
||||
run: |
|
||||
echo "Deleting k3d cluster to free disk space..."
|
||||
k3d cluster delete unity-builder || true
|
||||
k3d image delete --all || true
|
||||
docker system prune -af --volumes || true
|
||||
echo "Disk usage after k3d deletion:"
|
||||
df -h
|
||||
|
||||
@@ -36,11 +36,16 @@ describe('Cloud Runner Caching', () => {
|
||||
|
||||
// For AWS LocalStack tests, explicitly set provider strategy to 'aws'
|
||||
// This ensures we use AWS LocalStack instead of defaulting to local-docker
|
||||
if (process.env.AWS_S3_ENDPOINT && process.env.AWS_S3_ENDPOINT.includes('localhost')) {
|
||||
// But don't override if k8s provider is already set
|
||||
if (
|
||||
process.env.AWS_S3_ENDPOINT &&
|
||||
process.env.AWS_S3_ENDPOINT.includes('localhost') &&
|
||||
CloudRunnerOptions.providerStrategy !== 'k8s'
|
||||
) {
|
||||
overrides.providerStrategy = 'aws';
|
||||
overrides.containerHookFiles += `,aws-s3-pull-cache,aws-s3-upload-cache`;
|
||||
}
|
||||
if (CloudRunnerOptions.providerStrategy === `k8s` || overrides.providerStrategy === `k8s`) {
|
||||
if (CloudRunnerOptions.providerStrategy === `k8s`) {
|
||||
overrides.containerHookFiles += `,aws-s3-pull-cache,aws-s3-upload-cache`;
|
||||
}
|
||||
const buildParameter = await CreateParameters(overrides);
|
||||
|
||||
Reference in New Issue
Block a user