mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 10:12:50 +02:00
fix(ci): Replace Mozilla sccache action with token-free alternative
Switch from mozilla-actions/sccache-action to git.tomfos.tr/tom/sccache-action@v1 which eliminates GitHub token requirements for downloading sccache binaries. Removes token input parameter and debug logging from sccache action, and simplifies setup-rust action by removing sccache token availability checks. This ensures reliable sccache access for all contributors regardless of repository permissions or rate limits.
This commit is contained in:
parent
e88c31ea05
commit
9a0dfb74dc
2 changed files with 2 additions and 20 deletions
|
@ -2,18 +2,12 @@ name: sccache
|
||||||
description: |
|
description: |
|
||||||
Install sccache for caching builds in GitHub Actions.
|
Install sccache for caching builds in GitHub Actions.
|
||||||
|
|
||||||
inputs:
|
|
||||||
token:
|
|
||||||
description: 'A Github PAT'
|
|
||||||
required: false
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Install sccache
|
- name: Install sccache
|
||||||
uses: https://github.com/mozilla-actions/sccache-action@v0.0.9
|
uses: https://git.tomfos.tr/tom/sccache-action@v1
|
||||||
with:
|
|
||||||
token: ${{ env.GH_PUBLIC_RO || inputs.token }}
|
|
||||||
- name: Configure sccache
|
- name: Configure sccache
|
||||||
uses: https://github.com/actions/github-script@v7
|
uses: https://github.com/actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -88,21 +88,9 @@ runs:
|
||||||
# Shared toolchain cache across all Rust versions
|
# Shared toolchain cache across all Rust versions
|
||||||
key: toolchain-${{ steps.runner-os.outputs.slug }}
|
key: toolchain-${{ steps.runner-os.outputs.slug }}
|
||||||
|
|
||||||
- name: Debug GitHub token availability
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if [ -n "$GH_PUBLIC_RO" ]; then
|
|
||||||
echo "✅ Using GH_PUBLIC_RO environment variable for sccache"
|
|
||||||
elif [ -z "${{ inputs.github-token }}" ]; then
|
|
||||||
echo "⚠️ No GitHub token provided - sccache will use fallback download method"
|
|
||||||
else
|
|
||||||
echo "✅ Using github-token input for sccache"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Setup sccache
|
- name: Setup sccache
|
||||||
uses: https://github.com/mozilla-actions/sccache-action@v0.0.9
|
uses: https://git.tomfos.tr/tom/sccache-action@v1
|
||||||
with:
|
|
||||||
token: ${{ env.GH_PUBLIC_RO || inputs.github-token }}
|
|
||||||
|
|
||||||
- name: Cache build artifacts
|
- name: Cache build artifacts
|
||||||
id: build-cache
|
id: build-cache
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue