Skip to content

Commit 8ddef8a

Browse files
committed
ci: test caching
1 parent 0704423 commit 8ddef8a

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/workflows/publish-next.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
on:
1313
push:
14-
branches: [main]
14+
branches: [fix/macos]
1515

1616
permissions:
1717
id-token: write # This is required for requesting the JWT
@@ -59,7 +59,7 @@ jobs:
5959
publish:
6060
uses: aws-amplify/amplify-ui/.github/workflows/reusable-tagged-publish.yml@main
6161
with:
62-
dist-tag: next
62+
dist-tag: macos15
6363
secrets:
6464
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6565

@@ -77,7 +77,7 @@ jobs:
7777
uses: ./.github/workflows/reusable-build-system-test.yml
7878
needs: publish
7979
with:
80-
dist-tag: next
80+
dist-tag: macos15
8181
secrets:
8282
AUTH_E2E_ROLE_ARN: ${{ secrets.AUTH_E2E_ROLE_ARN }}
8383
DOMAIN: ${{ secrets.DOMAIN }}
@@ -90,7 +90,7 @@ jobs:
9090
uses: ./.github/workflows/reusable-build-system-test-react-native.yml
9191
needs: publish
9292
with:
93-
dist-tag: next
93+
dist-tag: macos15
9494

9595
log-failure-metric:
9696
# Send a failure data point to metric PublishNextFailure in github-workflows@ us-east-2, if it's a failure

.github/workflows/reusable-build-system-test-react-native.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,32 @@ jobs:
153153
distribution: 'corretto' # Amazon Corretto Build of OpenJDK
154154
java-version: '17'
155155

156+
- name: Cache Android SDK and emulator
157+
if: ${{ matrix.platform == 'android' }}
158+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
159+
with:
160+
path: |
161+
~/Library/Android/sdk/system-images
162+
~/Library/Android/sdk/build-tools
163+
~/Library/Android/sdk/platform-tools
164+
~/.android/avd
165+
key: ${{ runner.os }}-android-sdk-27-x86_64-v1
166+
env:
167+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
168+
169+
- name: Cache Gradle dependencies
170+
if: ${{ matrix.platform == 'android' }}
171+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
172+
with:
173+
path: |
174+
~/.gradle/caches
175+
~/.gradle/wrapper
176+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
177+
restore-keys: |
178+
${{ runner.os }}-gradle-
179+
env:
180+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3
181+
156182
- name: Install iOS simulator
157183
if: ${{ matrix.platform == 'ios' }}
158184
run: |

0 commit comments

Comments
 (0)