Add dependabot & Fix sccache fail in CI (#1451)

* - Prevent sponsor.yml running on fork repos
- Use gcr mirror for docker image pull
- Add dependabot

* Update sccache version & adjust for github change & fix foundationdb pkg download url
This commit is contained in:
vickunwu
2025-04-30 16:36:07 +08:00
committed by GitHub
parent f3ae865f38
commit 7dc620816f
5 changed files with 31 additions and 8 deletions

View File

@@ -157,6 +157,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["https://mirror.gcr.io"]
driver-opts: |
network=host
@@ -301,7 +304,7 @@ jobs:
uses: actions/checkout@v4
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.7
uses: mozilla-actions/sccache-action@v0.0.9
with:
disable_annotations: true
@@ -334,7 +337,7 @@ jobs:
uses: actions/checkout@v4
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.7
uses: mozilla-actions/sccache-action@v0.0.9
with:
disable_annotations: true
@@ -344,7 +347,7 @@ jobs:
run: |
rustup target add ${{matrix.target}}
# Get latest FoundationDB installer
curl --retry 5 -Lso foundationdb.pkg "$(gh api -X GET /repos/apple/foundationdb/releases --jq '.[] | select(.prerelease == false) | .assets[] | select(.name | test("${{startsWith(matrix.target, 'x86') && 'x86_64' || 'arm64'}}" + ".pkg")) | .browser_download_url' | head -n1)"
curl --retry 5 -Lso foundationdb.pkg "$(gh api -X GET /repos/apple/foundationdb/releases --jq '.[] | select(.prerelease == false) | .assets[] | select(.name | test("${{startsWith(matrix.target, 'x86') && 'x86_64' || 'arm64'}}" + ".pkg$")) | .browser_download_url' | head -n1)"
sudo installer -allowUntrusted -dumplog -pkg foundationdb.pkg -target /
cargo build --release --target ${{matrix.target}} -p mail-server --no-default-features --features "foundationdb elastic s3 redis enterprise"
mkdir -p artifacts