diff --git a/.github/actions/relocate-tmp/action.yml b/.github/actions/relocate-tmp/action.yml new file mode 100644 index 0000000000..2dcfb2f2ae --- /dev/null +++ b/.github/actions/relocate-tmp/action.yml @@ -0,0 +1,16 @@ +name: relocate tmp +description: >- + Point TMPDIR and GOTMPDIR at the runner temp directory on Linux. Ubuntu 26.04 + runners mount /tmp as a ~7.8G RAM-backed tmpfs with a user quota, so large + builds fail with "disk quota exceeded". + https://github.com/actions/runner-images/issues/14777 +runs: + using: composite + steps: + - if: runner.os == 'Linux' + shell: bash + run: | + { + echo "TMPDIR=$RUNNER_TEMP" + echo "GOTMPDIR=$RUNNER_TEMP" + } >> "$GITHUB_ENV" diff --git a/.github/workflows/desktop-ci.yml b/.github/workflows/desktop-ci.yml index 9e87ec18db..abc547c862 100644 --- a/.github/workflows/desktop-ci.yml +++ b/.github/workflows/desktop-ci.yml @@ -94,6 +94,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: ./.github/actions/relocate-tmp + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: go-version-file: go.mod diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 326bb1f309..9d0355cbab 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -110,6 +110,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: ./.github/actions/relocate-tmp + - name: setup Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: @@ -137,6 +139,7 @@ jobs: contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: ./.github/actions/relocate-tmp - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: go-version-file: go.mod @@ -172,6 +175,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: ./.github/actions/relocate-tmp + - name: setup Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: @@ -228,6 +233,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: ./.github/actions/relocate-tmp + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: go-version-file: go.mod @@ -294,8 +301,6 @@ jobs: ${{ runner.os == 'Linux' && '--parallelism=1' || '' }} env: DEVSY_CLI_VERSION: v0.0.0 - # Ubuntu 26.04 quotas /tmp: https://github.com/actions/runner-images/issues/14777 - GOTMPDIR: ${{ runner.temp }} - name: disk usage after Linux snapshot if: always() && runner.os == 'Linux' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5cdb8150e..61d715028b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: ./.github/actions/relocate-tmp + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 with: go-version-file: go.mod @@ -85,6 +87,8 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: ./.github/actions/relocate-tmp + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 24