From 457d3df5e0b74c2e3110f831155b979c05ed35a8 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Mon, 23 Sep 2024 15:32:16 +0100 Subject: [PATCH] Free disk space before build (#2421) Fixes https://github.com/pulumi/pulumi-azure/issues/2420 --- .ci-mgmt.yaml | 1 + .github/workflows/build_provider.yml | 6 ++++++ .github/workflows/prerequisites.yml | 6 ++++++ .github/workflows/upgrade-bridge.yml | 6 ++++++ .github/workflows/upgrade-provider.yml | 6 ++++++ 5 files changed, 25 insertions(+) diff --git a/.ci-mgmt.yaml b/.ci-mgmt.yaml index bf132e1026..4f38b52add 100644 --- a/.ci-mgmt.yaml +++ b/.ci-mgmt.yaml @@ -5,6 +5,7 @@ timeout: 90 generate-nightly-test-workflow: true providerVersion: github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion freeDiskSpaceBeforeTest: true +freeDiskSpaceBeforeBuild: true env: ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }} ARM_ENVIRONMENT: "public" diff --git a/.github/workflows/build_provider.yml b/.github/workflows/build_provider.yml index a6ced9643e..c9c890c7a1 100644 --- a/.github/workflows/build_provider.yml +++ b/.github/workflows/build_provider.yml @@ -29,6 +29,12 @@ jobs: - os: windows arch: amd64 steps: + # Run as first step so we don't delete things that have just been installed + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be + with: + tool-cache: false + swap-storage: false - name: Checkout Repo uses: actions/checkout@v4 - name: Setup tools diff --git a/.github/workflows/prerequisites.yml b/.github/workflows/prerequisites.yml index 01ee9899f0..d0928ecaca 100644 --- a/.github/workflows/prerequisites.yml +++ b/.github/workflows/prerequisites.yml @@ -49,6 +49,12 @@ jobs: outputs: version: ${{ steps.provider-version.outputs.version }} steps: + # Run as first step so we don't delete things that have just been installed + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be + with: + tool-cache: false + swap-storage: false - name: Checkout Repo uses: actions/checkout@v4 - uses: pulumi/provider-version-action@v1 diff --git a/.github/workflows/upgrade-bridge.yml b/.github/workflows/upgrade-bridge.yml index 0c47364cab..7c6aa0992e 100644 --- a/.github/workflows/upgrade-bridge.yml +++ b/.github/workflows/upgrade-bridge.yml @@ -57,6 +57,12 @@ jobs: name: upgrade-provider runs-on: ubuntu-latest steps: + # Run as first step so we don't delete things that have just been installed + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be + with: + tool-cache: false + swap-storage: false - name: Checkout Repo uses: actions/checkout@v4 - name: Setup tools diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml index 02437beb9d..c41ba2c808 100644 --- a/.github/workflows/upgrade-provider.yml +++ b/.github/workflows/upgrade-provider.yml @@ -9,6 +9,12 @@ jobs: name: upgrade-provider runs-on: ubuntu-latest steps: + # Run as first step so we don't delete things that have just been installed + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be + with: + tool-cache: false + swap-storage: false - name: Call upgrade provider action uses: pulumi/pulumi-upgrade-provider-action@v0.0.12 with: