fix(ci): remove extraneous caching (#10258)

- Removes the swift DerivedData cache. This was added to attempt to
speed up the Swift builds in CI but in reality, those are already fast
and the cache did not speed them up.
- Removes the runner.os/arch specifier from the Webview installer cache
key. The binary download is hardcoded for a specific windows version /
arch already so the cache key just adds unneeded complexity.

These caches are getting saved on PR runs which consumes excess GHA
cache storage.
This commit is contained in:
Jamil
2025-08-27 08:01:02 -04:00
committed by GitHub
parent 3673ce01a0
commit 516be7417e
8 changed files with 10 additions and 24 deletions

View File

@@ -148,13 +148,13 @@ jobs:
- name: Add 50ms simulated API latency
run: |
docker compose exec -T -u root api sh -c 'apk add --no-cache iproute2-tc'
docker compose exec -T -u root api sh -c 'apk add --update --no-cache iproute2-tc'
docker compose exec -T -u root api sh -c 'tc qdisc add dev eth0 root netem delay 50ms'
- name: Add 10ms simulated gateway latency
run: |
# compatibility test images won't have the `tc` command
docker compose exec -T gateway sh -c 'apk add --no-cache iproute2-tc'
docker compose exec -T gateway sh -c 'apk add --update --no-cache iproute2-tc'
docker compose exec -T gateway sh -c 'tc qdisc add dev eth0 root netem delay 10ms'
- run: ./scripts/tests/${{ matrix.test.name }}.sh

View File

@@ -68,12 +68,6 @@ jobs:
with:
targets: ${{ matrix.rust-targets }}
sccache_azure_connection_string: ${{ secrets.SCCACHE_AZURE_CONNECTION_STRING }}
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
name: Restore Swift DerivedData Cache
id: cache
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-${{ hashFiles('swift/*', 'rust/**/*.rs', 'rust/**/*.toml', 'rust/**/*.lock}') }}
- run: ${{ matrix.build-script }}
env:
IOS_APP_PROVISIONING_PROFILE: "${{ secrets.APPLE_IOS_APP_PROVISIONING_PROFILE }}"
@@ -145,11 +139,3 @@ jobs:
sentry-cli debug-files upload --log-level info --project apple-client --include-sources ${{ runner.temp }}
sentry-cli debug-files upload --log-level info --project apple-client --include-sources ./rust/target
- uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
if: ${{ steps.cache.outputs.cache-hit != 'true'}}
name: Save Swift DerivedData Cache
with:
path: ~/Library/Developer/Xcode/DerivedData
# Swift benefits heavily from build cache, so aggressively write a new one
# on each build on `main` and attempt to restore it in PR builds with broader restore-key.
key: ${{ steps.cache.outputs.cache-primary-key }}