Skip to content

Commit

Permalink
Add disk clearing step before building SDKs in GHA (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
rquitales committed Jul 28, 2023
1 parent e4bbada commit 47f91ad
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,17 @@ jobs:
uses: jaxxstorm/[email protected]
with:
repo: mikhailshilkov/schema-tools
- name: Clear GitHub Actions Ubuntu runner disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
android: true
haskell: true
swap-storage: true
# TODO: enable once transient error with azure is resolved
# E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.105-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
large-packages: false
- name: Echo Coverage Output Dir
run: 'echo "Coverage output directory: ${{ env.COVERAGE_OUTPUT_DIR }}"'
- name: Generate Coverage Data
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/nightly-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,17 @@ jobs:
uses: jaxxstorm/[email protected]
with:
repo: mikhailshilkov/schema-tools
- name: Clear GitHub Actions Ubuntu runner disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
android: true
haskell: true
swap-storage: true
# TODO: enable once transient error with azure is resolved
# E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.105-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
large-packages: false
- name: Build tfgen & provider binaries
run: make provider
- if: github.event_name == 'pull_request'
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ jobs:
uses: jaxxstorm/[email protected]
with:
repo: mikhailshilkov/schema-tools
- name: Clear GitHub Actions Ubuntu runner disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
android: true
haskell: true
swap-storage: true
# TODO: enable once transient error with azure is resolved
# E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.105-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
large-packages: false
- name: Build tfgen & provider binaries
run: make provider
- if: github.event_name == 'pull_request'
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ jobs:
uses: jaxxstorm/[email protected]
with:
repo: mikhailshilkov/schema-tools
- name: Clear GitHub Actions Ubuntu runner disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
android: true
haskell: true
swap-storage: true
# TODO: enable once transient error with azure is resolved
# E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.105-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
large-packages: false
- name: Build tfgen & provider binaries
run: make provider
- if: github.event_name == 'pull_request'
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,17 @@ jobs:
uses: jaxxstorm/[email protected]
with:
repo: mikhailshilkov/schema-tools
- name: Clear GitHub Actions Ubuntu runner disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
android: true
haskell: true
swap-storage: true
# TODO: enable once transient error with azure is resolved
# E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.105-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
large-packages: false
- name: Build tfgen & provider binaries
run: make provider
- if: github.event_name == 'pull_request'
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/update-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ jobs:
- name: Update Pulumi SDK (sdk/go.mod)
run: cd sdk && go mod edit -require github.com/pulumi/pulumi/sdk/v3@v${{
github.event.inputs.sdk_version }} && go mod tidy
- name: Clear GitHub Actions Ubuntu runner disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
android: true
haskell: true
swap-storage: true
# TODO: enable once transient error with azure is resolved
# E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.105-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
large-packages: false
- run: make tfgen
- run: make build_sdks
- id: create-pr
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/update-upstream-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ jobs:
env.UPSTREAM_PROVIDER_ORG }}/${{ env.UPSTREAM_PROVIDER_REPO }}${{
env.UPSTREAM_PROVIDER_MAJOR_VERSION }}@${{ env.UPSTREAM_PROVIDER_SHA }}
&& go mod tidy
- name: Clear GitHub Actions Ubuntu runner disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
dotnet: false
android: true
haskell: true
swap-storage: true
# TODO: enable once transient error with azure is resolved
# E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.105-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
large-packages: false
- run: make tfgen
- run: make build_sdks
- if: ${{ !github.event.inputs.linked_issue_number }}
Expand Down

0 comments on commit 47f91ad

Please sign in to comment.