Skip to content

Commit 472d392

Browse files
committed
fix: remove sccache from release workflow for reliability
sccache depends on GitHub Actions cache service which has been experiencing outages. Removing it from release builds to ensure reliable releases. sccache can still be used in CI for development builds where failures are less critical.
1 parent 3314ea7 commit 472d392

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,6 @@ jobs:
4444
with:
4545
targets: ${{ matrix.target }}
4646

47-
- name: Setup sccache
48-
if: matrix.use_cross != true
49-
uses: mozilla-actions/[email protected]
50-
continue-on-error: true
51-
52-
- name: Configure sccache env
53-
if: matrix.use_cross != true
54-
run: |
55-
if command -v sccache &> /dev/null && sccache --version &> /dev/null; then
56-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
57-
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
58-
else
59-
echo "sccache not available, building without cache"
60-
fi
61-
shell: bash
62-
6347
- name: Cache cargo registry
6448
uses: actions/cache@v4
6549
with:
@@ -80,17 +64,13 @@ jobs:
8064

8165
- name: Install cross
8266
if: matrix.use_cross == true
83-
env:
84-
RUSTC_WRAPPER: ""
8567
run: |
8668
if [ ! -f ~/.cargo/bin/cross ]; then
8769
cargo install cross --git https://github.com/cross-rs/cross
8870
fi
8971
9072
- name: Build (cross)
9173
if: matrix.use_cross == true
92-
env:
93-
RUSTC_WRAPPER: ""
9474
run: cross build --release --target ${{ matrix.target }}
9575

9676
- name: Install mold linker (Linux)
@@ -152,8 +132,6 @@ jobs:
152132
name: Publish to crates.io
153133
needs: release
154134
runs-on: ubuntu-latest
155-
env:
156-
RUSTC_WRAPPER: ""
157135
steps:
158136
- uses: actions/checkout@v4
159137

@@ -173,7 +151,6 @@ jobs:
173151
env:
174152
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
175153
run: |
176-
# Publish in dependency order with minimal delays
177154
cargo publish -p rma-common --allow-dirty || true
178155
sleep 15
179156
cargo publish -p rma-parser --allow-dirty || true
@@ -242,5 +219,3 @@ jobs:
242219
tags: |
243220
ghcr.io/bumahkib7/rma:${{ steps.version.outputs.version }}
244221
ghcr.io/bumahkib7/rma:latest
245-
cache-from: type=gha
246-
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)