π Manual build #569
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: π Manual build | |
| on: | |
| # Manual trigger build | |
| # No multi-select | |
| # https://github.com/actions/runner/issues/2076 | |
| workflow_dispatch: | |
| inputs: | |
| build_docker: | |
| description: Build Docker | |
| type: boolean | |
| required: false | |
| build_windows_x64: | |
| description: Build Windows x64 | |
| type: boolean | |
| required: false | |
| build_macos_x64: | |
| description: Build macOS x64 | |
| type: boolean | |
| required: false | |
| build_macos_arm64: | |
| description: Build macOS arm64 | |
| type: boolean | |
| required: false | |
| build_linux_appimage_x64: | |
| description: Build Linux AppImage x64 | |
| type: boolean | |
| required: false | |
| build_linux_appimage_arm64: | |
| description: Build Linux AppImage arm64 | |
| type: boolean | |
| required: false | |
| build_linux_deb_x64: | |
| description: Build Linux deb x64 | |
| type: boolean | |
| required: false | |
| build_linux_deb_arm64: | |
| description: Build Linux deb arm64 | |
| type: boolean | |
| required: false | |
| build_linux_rpm_x64: | |
| description: Build Linux rpm x64 | |
| type: boolean | |
| required: false | |
| build_linux_rpm_arm64: | |
| description: Build Linux rpm arm64 | |
| type: boolean | |
| required: false | |
| build_linux_snap_x64: | |
| description: Build Linux snap x64 | |
| type: boolean | |
| required: false | |
| # TODO: arm64 snap disabled β no arm64 snap template in electron-builder | |
| # https://github.com/electron-userland/electron-builder/issues/8167 | |
| # https://github.com/electron-userland/electron-builder-binaries/releases/tag/snap-template-4.0-2 | |
| # build_linux_snap_arm64: | |
| # description: Build Linux snap arm64 | |
| # type: boolean | |
| # required: false | |
| environment: | |
| description: Environment to run build | |
| type: environment | |
| default: 'development' | |
| required: false | |
| debug: | |
| description: Enable SSH Debug | |
| type: boolean | |
| # Cancel a previous same workflow | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| get-selected: | |
| runs-on: ubuntu-latest | |
| outputs: # Set this to consume the output on other job | |
| selected: ${{ steps.get-selected.outputs.selected}} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: get-selected | |
| uses: joao-zanutto/get-selected@v2.0.0 | |
| with: | |
| format: 'list' | |
| - name: echo selected targets | |
| run: echo ${{ steps.get-selected.outputs.selected }} | |
| manual-build: | |
| needs: get-selected | |
| uses: ./.github/workflows/build.yml | |
| secrets: inherit | |
| with: | |
| target: ${{ needs.get-selected.outputs.selected }} | |
| debug: ${{ inputs.debug }} | |
| environment: ${{ inputs.environment }} | |
| enterprise: false | |
| aws-upload: | |
| uses: ./.github/workflows/aws-upload-dev.yml | |
| secrets: inherit | |
| needs: [manual-build] | |
| if: always() | |
| clean: | |
| uses: ./.github/workflows/clean-deployments.yml | |
| # secrets: inherit | |
| needs: [aws-upload] | |
| if: always() | |
| permissions: | |
| actions: write | |
| contents: read | |
| deployments: write | |
| # Remove artifacts from github actions | |
| remove-artifacts: | |
| name: Remove artifacts | |
| needs: [aws-upload] | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Remove all artifacts | |
| uses: ./.github/actions/remove-artifacts |