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:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/sponsors.yml
vendored
1
.github/workflows/sponsors.yml
vendored
@@ -7,6 +7,7 @@ permissions:
|
||||
contents: write
|
||||
jobs:
|
||||
deploy:
|
||||
if: github.event_name != 'schedule' || !github.event.repository.fork
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
|
||||
Reference in New Issue
Block a user