mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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:
2
.github/actions/setup-tauri-v2/action.yml
vendored
2
.github/actions/setup-tauri-v2/action.yml
vendored
@@ -59,7 +59,7 @@ runs:
|
||||
id: cache-webview2-installer
|
||||
with:
|
||||
path: WebView2Installer.exe
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-webview2-offline-installer
|
||||
key: webview2-offline-installer
|
||||
- name: Download WebView2 bootstrapper
|
||||
if: ${{ runner.os == 'Windows' && steps.cache-webview2-installer.outputs.cache-hit != 'true' && inputs.runtime == 'true' }}
|
||||
# This is the "Evergreen" bootstrapper from Microsoft
|
||||
|
||||
4
.github/workflows/_integration_tests.yml
vendored
4
.github/workflows/_integration_tests.yml
vendored
@@ -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
|
||||
|
||||
14
.github/workflows/_swift.yml
vendored
14
.github/workflows/_swift.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user