Skip to content

Use GitHub buildcache #8052 #9055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 30 commits into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
931e892
Added buildcache folding for xcodebuild (#8052)
a-25 Nov 27, 2021
06cac18
Added buildcache using in spm.yml (#8052)
a-25 Nov 27, 2021
e345b31
Added buildcache using in spm.yml, debug (#8052)
a-25 Nov 27, 2021
ebda8e8
Added buildcache using in spm.yml, debug (#8052)
a-25 Nov 27, 2021
83c3d51
Added buildcache using in spm.yml, debug (#8052)
a-25 Nov 27, 2021
62dc372
Added buildcache using in spm.yml, debug (#8052)
a-25 Nov 27, 2021
f017b44
Added buildcache using in spm.yml, debug (#8052)
a-25 Nov 27, 2021
9e213de
Added buildcache, debug (#8052)
a-25 Nov 27, 2021
c27a5de
Added buildcache, debug (#8052)
a-25 Nov 27, 2021
914ada2
Added buildcache, debug (#8052)
a-25 Nov 27, 2021
d483649
Added buildcache to job configs, part 1 (#8052)
a-25 Nov 27, 2021
b0e7ab5
Added buildcache to job configs, part 2 (#8052)
a-25 Nov 30, 2021
254d253
Added xcodebuild buildcache folding script (#8052)
a-25 Nov 30, 2021
ac6327f
Added buildcache, debug (#8052)
a-25 Nov 30, 2021
09ff088
Added buildcache, debug (#8052)
a-25 Nov 30, 2021
227deda
Added buildcache, debug (#8052)
a-25 Nov 30, 2021
bd08d20
Added buildcache, debug (#8052)
a-25 Nov 30, 2021
756d3e5
Added buildcache, debug (#8052)
a-25 Nov 30, 2021
2c4ec73
Added buildcache, debug, reverted scripts/build.sh (#8052)
a-25 Nov 30, 2021
c4b2d0e
Added buildcache, debug (#8052)
a-25 Nov 30, 2021
5a86804
Added buildcache, debug, added more buildcache folding (#8052)
a-25 Nov 30, 2021
fc07d43
Added buildcache, restored spm.yml (#8052)
a-25 Nov 30, 2021
a6aec1b
Fixed copyright (#8052)
a-25 Dec 5, 2021
bdf9efa
Added buildcache to more files (#8052)
a-25 Dec 5, 2021
f33949a
Try to use separate cache for different OS (#8052)
a-25 Dec 5, 2021
4115364
Added OS cache for buildcache (#8052)
a-25 Dec 5, 2021
840887e
Restored spm.yml, (#8052)
a-25 Dec 6, 2021
2bd497c
Fixed whitespaces (#8052)
a-25 Dec 6, 2021
3892f0d
Switched to commit hash for buildcache action (#8052)
a-25 Dec 11, 2021
25430fc
Switched to 1.2.1 commit hash for buildcache action (#8052)
a-25 Dec 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/abtesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -49,6 +52,9 @@ jobs:
target: [tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
Expand All @@ -61,6 +67,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build for Catalyst
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/app_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
diagnostic: [tsan, asan, ubsan]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand Down Expand Up @@ -79,6 +82,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -95,6 +101,9 @@ jobs:
target: [tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/appdistribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -47,6 +50,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build for Catalyst
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/archiving.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
pod: ["FirebaseAppDistribution", "FirebaseDynamicLinks", "FirebaseInAppMessaging", "FirebasePerformance"]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and archive
Expand All @@ -41,6 +44,9 @@ jobs:
pod: ["FirebaseABTesting", "FirebaseAuth", "FirebaseCore", "FirebaseCrashlytics", "FirebaseDatabase", "FirebaseFirestore", "FirebaseFunctions", "FirebaseMessaging", "FirebaseRemoteConfig", "FirebaseStorage"]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and archive
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Prereqs
Expand Down Expand Up @@ -74,6 +77,9 @@ jobs:
target: [iOS, tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
Expand All @@ -86,6 +92,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build for Catalyst
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cocoapods-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
config: [Cocoapods_multiprojects_frameworks, Cocoapods_multiprojects_staticLibs]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Get realpath
run: brew install coreutils
- name: Build and test
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/combine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}

- name: Setup build
run: scripts/install_prereqs.sh CombineSwift ${{ matrix.target }} xcodebuild
Expand All @@ -61,6 +64,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Install Secret GoogleService-Info.plist
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/core-diagnostics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -47,6 +50,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build Catalyst
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -48,6 +51,9 @@ jobs:
target: [tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
Expand All @@ -60,6 +66,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build Catalyst
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/crashlytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -51,6 +54,9 @@ jobs:
target: [tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
Expand All @@ -64,6 +70,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build for Catalyst
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
target: [iOS, tvOS, macOS]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
Expand All @@ -35,6 +38,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: IntegrationTest
Expand All @@ -47,6 +53,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -63,6 +72,9 @@ jobs:
target: [tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
Expand All @@ -76,6 +88,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build for Catalyst
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dynamiclinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/firebasepod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Prereqs
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}

- name: Prepare ccache
uses: actions/cache@v1
Expand Down Expand Up @@ -131,6 +134,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}

- name: Prepare ccache
uses: actions/cache@v1
Expand Down Expand Up @@ -159,6 +165,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}

- name: Setup build
run: scripts/install_prereqs.sh Firestore ${{ matrix.target }} xcodebuild
Expand Down Expand Up @@ -231,6 +240,9 @@ jobs:
needs: check
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Build Test
Expand All @@ -247,6 +259,9 @@ jobs:
target: [tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Build Test
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: iOS Unit Tests
Expand All @@ -65,6 +68,9 @@ jobs:
target: [tvOS, macOS, catalyst]
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Unit Tests
Expand All @@ -77,6 +83,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build for Catalyst
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/google-utilities-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
with:
cache_key: ${{ matrix.os }}
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Setup project and Build for Catalyst
Expand Down
Loading