feat: add create subtask buttons #145
Workflow file for this run
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: 'Build' | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'index.html' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - 'pnpm-workspace.yaml' | |
| - 'public/**' | |
| - 'src/**' | |
| - 'src-tauri/**' | |
| - 'tsconfig*.json' | |
| - 'vite.config.ts' | |
| - '.github/actions/setup-tauri-build/**' | |
| - '.github/actions/setup-portable-appimage/**' | |
| - '.github/actions/upload-tauri-artifact/**' | |
| - '.github/workflows/build.yml' | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - develop | |
| paths: | |
| - 'index.html' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - 'pnpm-workspace.yaml' | |
| - 'public/**' | |
| - 'src/**' | |
| - 'src-tauri/**' | |
| - 'tsconfig*.json' | |
| - 'vite.config.ts' | |
| - '.github/actions/setup-tauri-build/**' | |
| - '.github/actions/setup-portable-appimage/**' | |
| - '.github/actions/upload-tauri-artifact/**' | |
| - '.github/workflows/build.yml' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: 'macos-latest' | |
| label: 'macOS (Apple Silicon)' | |
| artifact: 'macos-apple-silicon' | |
| args: '--target aarch64-apple-darwin' | |
| - platform: 'macos-15-intel' | |
| label: 'macOS (Intel)' | |
| artifact: 'macos-intel' | |
| args: '--target x86_64-apple-darwin' | |
| - platform: 'ubuntu-22.04' | |
| label: 'Ubuntu' | |
| artifact: 'linux-ubuntu' | |
| rpm_artifact: 'linux-fedora' | |
| args: '--bundles deb,rpm' | |
| - platform: 'ubuntu-22.04-arm' | |
| label: 'Ubuntu (ARM)' | |
| artifact: 'linux-ubuntu-arm' | |
| rpm_artifact: 'linux-fedora-arm' | |
| args: '--bundles deb,rpm' | |
| - platform: 'windows-latest' | |
| label: 'Windows' | |
| nsis_artifact: 'windows-nsis' | |
| msi_artifact: 'windows-msi' | |
| args: '' | |
| - platform: 'windows-11-arm' | |
| label: 'Windows (ARM)' | |
| nsis_artifact: 'windows-arm-nsis' | |
| msi_artifact: 'windows-arm-msi' | |
| args: '' | |
| runs-on: ${{ matrix.platform }} | |
| name: ${{ matrix.label }} | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Tauri build | |
| uses: ./.github/actions/setup-tauri-build | |
| with: | |
| platform: ${{ matrix.platform }} | |
| rust-targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin' || '' }} | |
| - uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| args: ${{ matrix.args }} --config '{"bundle":{"createUpdaterArtifacts":false}}' | |
| - name: Upload macOS artifacts | |
| if: startsWith(matrix.platform, 'macos') | |
| uses: ./.github/actions/upload-tauri-artifact | |
| with: | |
| name: Chiri-${{ matrix.artifact }} | |
| path: | | |
| src-tauri/target/**/release/bundle/**/*.dmg | |
| - name: Upload Ubuntu artifacts | |
| if: startsWith(matrix.platform, 'ubuntu') | |
| uses: ./.github/actions/upload-tauri-artifact | |
| with: | |
| name: Chiri-${{ matrix.artifact }} | |
| path: | | |
| src-tauri/target/**/release/bundle/**/*.deb | |
| - name: Upload Fedora artifacts | |
| if: startsWith(matrix.platform, 'ubuntu') | |
| uses: ./.github/actions/upload-tauri-artifact | |
| with: | |
| name: Chiri-${{ matrix.rpm_artifact }} | |
| path: | | |
| src-tauri/target/**/release/bundle/**/*.rpm | |
| - name: Upload Windows NSIS artifacts | |
| if: startsWith(matrix.platform, 'windows') | |
| uses: ./.github/actions/upload-tauri-artifact | |
| with: | |
| name: Chiri-${{ matrix.nsis_artifact }} | |
| path: | | |
| src-tauri/target/**/release/bundle/**/*-setup.exe | |
| - name: Upload Windows MSI artifacts | |
| if: startsWith(matrix.platform, 'windows') | |
| uses: ./.github/actions/upload-tauri-artifact | |
| with: | |
| name: Chiri-${{ matrix.msi_artifact }} | |
| path: | | |
| src-tauri/target/**/release/bundle/**/*.msi | |
| appimage: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: 'ubuntu-24.04' | |
| label: 'AppImage (x86_64)' | |
| artifact: 'linux-appimage' | |
| - platform: 'ubuntu-24.04-arm' | |
| label: 'AppImage (ARM64)' | |
| artifact: 'linux-appimage-arm' | |
| runs-on: ${{ matrix.platform }} | |
| container: ghcr.io/pkgforge-dev/archlinux@sha256:f6fc7e14b0612a355d7ab50efb3cc40010ba28e4766860bd238d313b308f190b | |
| name: ${{ matrix.label }} | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Setup portable AppImage build | |
| uses: ./.github/actions/setup-portable-appimage | |
| - name: Build portable AppImage | |
| uses: tauri-apps/tauri-action@84b9d35b5fc46c1e45415bdb6144030364f7ebc5 # v0 | |
| env: | |
| TAURI_BUNDLER_NEW_APPIMAGE_FORMAT: 'true' | |
| with: | |
| tauriScript: cargo tauri | |
| args: --bundles appimage --config '{"bundle":{"createUpdaterArtifacts":false}}' | |
| - name: Upload AppImage artifact | |
| uses: ./.github/actions/upload-tauri-artifact | |
| with: | |
| name: Chiri-${{ matrix.artifact }} | |
| path: | | |
| src-tauri/target/**/release/bundle/**/*.AppImage |