Workflow Perf Improvement and DRY refactor #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'app-build-release-artifacts' | |
| on: | |
| push: | |
| branches: | |
| - staging | |
| paths: | |
| - 'apps/app/**' | |
| - '.github/workflows/app-build-release-artifacts.yml' | |
| pull_request: | |
| branches: | |
| - dev | |
| - staging | |
| paths: | |
| - 'apps/app/**' | |
| - '.github/workflows/app-build-release-artifacts.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build-app-release: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: 'macos-latest' # for Arm based macs (M1 and above). | |
| args: '--target aarch64-apple-darwin' | |
| - platform: 'macos-latest' # for Intel based macs. | |
| args: '--target x86_64-apple-darwin' | |
| - platform: 'ubuntu-22.04' | |
| args: '' | |
| - platform: 'ubuntu-22.04-arm' | |
| args: '' | |
| - platform: 'windows-2022' | |
| args: '' | |
| - platform: 'windows-11-arm' | |
| args: '' | |
| - platform: 'ubuntu-22.04' | |
| args: '--apk --split-per-abi --target aarch64 --target armv7' | |
| mobile: 'android' | |
| uses: ./.github/workflows/app-build.yml | |
| with: | |
| build-mode: 'release' | |
| publish: false | |
| environment: 'production' | |
| platform: ${{ matrix.platform }} | |
| args: ${{ matrix.args }} | |
| mobile: ${{ matrix.mobile || '' }} | |
| secrets: inherit |