feat(mobile): add built-in themes (#6619)
This commit is contained in:
1 parent
3583cd27dc
commit
d23b181da0
76 files changed
+3089
-837
No files matched your search
@@ -21,6 +21,19 @@ on:
|
||||
- both
|
||||
- dark
|
||||
- light
|
||||
theme:
|
||||
description: Palette to capture (all multiplies the run by six)
|
||||
required: true
|
||||
default: t3-code
|
||||
type: choice
|
||||
options:
|
||||
- t3-code
|
||||
- t3-chat
|
||||
- grove
|
||||
- ocean
|
||||
- ember
|
||||
- iris
|
||||
- all
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -33,7 +46,9 @@ jobs:
|
||||
name: iPhone 6.9, iPhone 6.5, and iPad 13
|
||||
if: inputs.platform == 'all' || inputs.platform == 'ios'
|
||||
runs-on: blacksmith-12vcpu-macos-26
|
||||
timeout-minutes: 60
|
||||
# Capturing every palette multiplies the device matrix by six, and only the
|
||||
# one native build is shared between them.
|
||||
timeout-minutes: ${{ inputs.theme == 'all' && 300 || 60 }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
@@ -62,10 +77,10 @@ jobs:
|
||||
"$vp_pnpm_bin/pnpm" --version
|
||||
|
||||
- name: Capture iOS showcase
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance }}"
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance }}" --theme "${{ inputs.theme }}"
|
||||
|
||||
- name: Validate App Store Connect assets
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance }}" --validate-only
|
||||
run: pnpm screenshots:mobile --platform ios --appearance "${{ inputs.appearance }}" --theme "${{ inputs.theme }}" --validate-only
|
||||
|
||||
- name: Upload iOS screenshots
|
||||
if: always()
|
||||
@@ -80,7 +95,9 @@ jobs:
|
||||
name: Android phone, 7-inch tablet, and 10-inch tablet
|
||||
if: inputs.platform == 'all' || inputs.platform == 'android'
|
||||
runs-on: blacksmith-16vcpu-ubuntu-2404
|
||||
timeout-minutes: 60
|
||||
# Capturing every palette multiplies the device matrix by six, and only the
|
||||
# one native build is shared between them.
|
||||
timeout-minutes: ${{ inputs.theme == 'all' && 300 || 60 }}
|
||||
env:
|
||||
T3_SHOWCASE_ANDROID_ABI: x86_64
|
||||
steps:
|
||||
@@ -137,10 +154,10 @@ jobs:
|
||||
cores: 8
|
||||
ram-size: 4096M
|
||||
disable-animations: false
|
||||
script: pnpm screenshots:mobile --platform android --appearance "${{ inputs.appearance }}"
|
||||
script: pnpm screenshots:mobile --platform android --appearance "${{ inputs.appearance }}" --theme "${{ inputs.theme }}"
|
||||
|
||||
- name: Validate Google Play assets
|
||||
run: pnpm screenshots:mobile --platform android --appearance "${{ inputs.appearance }}" --validate-only
|
||||
run: pnpm screenshots:mobile --platform android --appearance "${{ inputs.appearance }}" --theme "${{ inputs.theme }}" --validate-only
|
||||
|
||||
- name: Upload Android screenshots
|
||||
if: always()
|
||||
|
||||
Reference in new issue
Block a user