Skip to content

[Feature Request] Add mobile build support #525

@developomp

Description

@developomp

Currently, there's no way to build mobile apps using the tauri-action workflow, and since I can't find discussions of it anywhere, I would like to start one here:

tauri-action automatically build apps for specific platform based on the OS. And since mobile apps has to be compiled from desktop OS, I think adding a mobile option sounds like a decent solution.

Here's an example of how the mobile build workflow might look like:

...
jobs:
  release:
    strategy:
      matrix:
        platform: [macos-latest, ubuntu-20.04, windows-latest]
        mobile: no
        include: # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
          - os: ubuntu-latest
            mobile: yes
          - os: macos-latest
            mobile: yes
      ...

      - uses: tauri-apps/tauri-action@v0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tagName: app-v__VERSION__
          releaseName: 'App v__VERSION__'
          mobile: ${{ matrix.mobile }} # <- HERE
          releaseDraft: true
          prerelease: false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions