Build #5
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: | |
| types: [opened, synchronize, reopened] | |
| release: | |
| types: [published] | |
| jobs: | |
| build_appimage: | |
| permissions: | |
| actions: read | |
| security-events: write | |
| contents: write | |
| name: Build Ghostty (${{ matrix.arch }}) | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| include: | |
| - arch: aarch64 | |
| platform: linux/arm64 | |
| - arch: x86_64 | |
| platform: linux/amd64 | |
| steps: | |
| - name: Checkout ghostty-appimage | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| continue-on-error: true | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| continue-on-error: true | |
| - name: Build in Docker | |
| run: | | |
| docker run --rm --privileged \ | |
| --cap-add SYS_ADMIN \ | |
| --device /dev/fuse \ | |
| --platform ${{ matrix.platform }} \ | |
| -v ${{ github.workspace }}:/work \ | |
| -v /tmp:/tmp \ | |
| -w /work \ | |
| ubuntu:24.04 \ | |
| bash -c "./setup.sh && ./build.sh" | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ghostty-appimage-${{ matrix.arch }} | |
| retention-days: 7 | |
| path: /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage* | |
| release_appimage: | |
| permissions: | |
| actions: read | |
| security-events: write | |
| contents: write | |
| name: "Upload binaries to current release" | |
| runs-on: ubuntu-latest | |
| #if: ${{ github.event_name == 'release' }} | |
| needs: "build_appimage" | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| pattern: ghostty-appimage-* | |
| merge-multiple: true | |
| - name: Upload binaries to release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: ./Ghostty-*-*.AppImage* | |
| tag: ${{ github.ref }} | |
| overwrite: true | |
| file_glob: true |