Skip to content

Commit b9afcaa

Browse files
committed
Swicth back to temp, add compression
1 parent d708edd commit b9afcaa

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

.github/workflows/ci_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
container:
2828
image: ${{ matrix.variance.image }}
2929
env:
30-
CARGO_TARGET_DIR: ${{ runner.tool_cache }}/cargo-target
31-
DOC_CARGO_TARGET_DIR: ${{ runner.tool_cache }}/cargo-doc
30+
CARGO_TARGET_DIR: ${{ runner.temp }}/cargo-target
31+
DOC_CARGO_TARGET_DIR: ${{ runner.temp }}/cargo-doc
3232
strategy:
3333
fail-fast: false
3434
matrix:

.github/workflows/ci_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
- name: Check documentation
9999
env:
100100
RUSTDOCFLAGS: -Dwarnings
101-
CARGO_TARGET_DIR: ${{ runner.tool_cache }}/cargo-doc
101+
CARGO_TARGET_DIR: ${{ runner.temp }}/cargo-doc
102102
run: cargo doc --workspace --all-features --document-private-items --no-deps --exclude "optix*" --exclude "path-tracer" --exclude "denoiser" --exclude "vecadd*" --exclude "gemm*" --exclude "ex0*" --exclude "cudnn*" --exclude "sha2*" --exclude "cust_raw"
103103

104104
# Disabled due to dll issues, someone with Windows knowledge needed

.github/workflows/container_images.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,12 @@ jobs:
7272
uses: docker/setup-buildx-action@v3
7373
- name: Prepare BuildKit temp space
7474
run: |
75-
mkdir -p "${RUNNER_TEMP}/buildkit-tmp"
76-
echo "TMPDIR=${RUNNER_TEMP}/buildkit-tmp" >> "$GITHUB_ENV"
77-
echo "BUILDKIT_TMPDIR=${RUNNER_TEMP}/buildkit-tmp" >> "$GITHUB_ENV"
78-
echo "BUILDKIT_SANDBOX_TMPDIR=${RUNNER_TEMP}/buildkit-tmp" >> "$GITHUB_ENV"
75+
mkdir -p "${{ runner.temp }}/buildkit-tmp"
76+
echo "TMPDIR=${{ runner.temp }}/buildkit-tmp" >> "$GITHUB_ENV"
77+
echo "BUILDKIT_TMPDIR=${{ runner.temp }}/buildkit-tmp" >> "$GITHUB_ENV"
78+
echo "BUILDKIT_SANDBOX_TMPDIR=${{ runner.temp }}/buildkit-tmp" >> "$GITHUB_ENV"
7979
- name: Prepare tar output directory
80-
run: |
81-
TAR_DIR="$RUNNER_TOOL_CACHE/llvm7-tars"
82-
mkdir -p "$TAR_DIR"
83-
echo "TOOLCHAIN_TAR_DIR=$TAR_DIR" >> "$GITHUB_ENV"
84-
- name: Prepare tar output directory
85-
run: mkdir -p "$TOOLCHAIN_TAR_DIR"
80+
run: mkdir -p "${{ runner.temp }}/llvm7-tars"
8681
- name: Build and push toolchain
8782
id: toolchain-build
8883
uses: docker/build-push-action@v6
@@ -95,8 +90,8 @@ jobs:
9590
${{ steps.toolchain-meta.outputs.tags }}
9691
${{ env.REGISTRY }}/${{ matrix.variance.toolchain_image }}:ci-${{ github.run_id }}-${{ matrix.platform.arch }}
9792
outputs: |
98-
type=image,name=${{ env.REGISTRY }}/${{ matrix.variance.toolchain_image }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
99-
type=docker,dest=${{ env.TOOLCHAIN_TAR_DIR }}/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar
93+
type=image,name=${{ env.REGISTRY }}/${{ matrix.variance.toolchain_image }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }},compression=zstd,compression-level=10,force-compression=true
94+
type=docker,dest=${{ runner.temp }}/llvm7-tars/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar,compression=zstd,compression-level=10,force-compression=true
10095
cache-from: type=gha
10196
- name: Export digest
10297
if: github.event_name != 'pull_request'
@@ -116,11 +111,11 @@ jobs:
116111
uses: actions/upload-artifact@v4
117112
with:
118113
name: ${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}
119-
path: ${{ env.TOOLCHAIN_TAR_DIR }}/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar
114+
path: ${{ runner.temp }}/llvm7-tars/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar
120115
if-no-files-found: error
121116
retention-days: 1
122117
- name: Remove local tarball
123-
run: rm -f "$TOOLCHAIN_TAR_DIR/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar"
118+
run: rm -f "${{ runner.temp }}/llvm7-tars/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar"
124119
- name: Clean up caches
125120
if: always()
126121
run: |

0 commit comments

Comments
 (0)