Skip to content

ci(suite-native): add possibility to create adhoc native build from any branch #19113

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 1 commit into from
May 23, 2025
Merged
Changes from all commits
Commits
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
47 changes: 47 additions & 0 deletions .github/workflows/build-suite-native-adhoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "[Build] suite-native adhoc"

on:
workflow_dispatch:
inputs:
PLATFORM:
type: choice
options:
- all
- android
- ios
description: Select platform to run build
required: true

jobs:
adhoc-build:
if: github.repository == 'trezor/trezor-suite' || github.repository == 'trezor/trezor-suite-private'
name: EAS adhoc build
runs-on: ubuntu-latest
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
EXPO_PUBLIC_ENVIRONMENT: preview
permissions:
contents: read
pull-requests: write
actions: write
steps:
- name: Print selected platform
run: |
echo "Selected platform: ${{ github.event.inputs.PLATFORM }}"
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: yarn
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN_DEVELOP }}
- name: Install libs
run: |
yarn workspaces focus @suite-native/app
npx patch-package # Apply global patches.
- name: Trigger adhoc build
run: |
yarn native:adhoc -p ${{ github.event.inputs.PLATFORM }} --non-interactive --message ${{ github.sha }}
Loading