From 92cd0e08635e93bd0e3f6f206db6b3331831668a Mon Sep 17 00:00:00 2001 From: Benoit de Chezelles Date: Sun, 2 Aug 2026 22:02:35 +0200 Subject: [PATCH] ci: use newer ubuntu26 target for flatpak/linuxbrew/appimage packaging --- .github/workflows/gen_ubuntu24.04.yml | 21 +------- .../workflows/gen_ubuntu24.04_continuous.yml | 25 ++-------- .github/workflows/gen_ubuntu24.04_tag.yml | 50 ++----------------- .github/workflows/gen_ubuntu26.04.yml | 21 +++++++- .../workflows/gen_ubuntu26.04_continuous.yml | 25 ++++++++-- .github/workflows/gen_ubuntu26.04_tag.yml | 50 +++++++++++++++++-- ci/generate-workflows.py | 3 +- 7 files changed, 98 insertions(+), 97 deletions(-) diff --git a/.github/workflows/gen_ubuntu24.04.yml b/.github/workflows/gen_ubuntu24.04.yml index 8c699757e..b8ddeedbc 100644 --- a/.github/workflows/gen_ubuntu24.04.yml +++ b/.github/workflows/gen_ubuntu24.04.yml @@ -18,10 +18,7 @@ on: - "assets/wezterm-nautilus.py" - "assets/wezterm.appdata.xml" - "assets/wezterm.desktop" - - "ci/appimage.sh" - - "ci/appstreamcli" - "ci/deploy.sh" - - "ci/source-archive.sh" - "ci/tag-name.sh" - "get-deps" - "termwiz/data/wezterm.terminfo" @@ -29,9 +26,7 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: - image: "ubuntu:24.04" - options: --privileged + container: "ubuntu:24.04" env: CARGO_INCREMENTAL: "0" SCCACHE_GHA_ENABLED: "true" @@ -108,18 +103,6 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" - - name: "Install libfuse2" - shell: bash - run: "apt-get install -y libfuse2" - - name: "Install file" - shell: bash - run: "apt-get install -y file" - - name: "Source Tarball" - shell: bash - run: "bash ci/source-archive.sh" - - name: "Build AppImage" - shell: bash - run: "bash ci/appimage.sh" - name: "Upload artifact" uses: actions/upload-artifact@v7 with: @@ -127,5 +110,3 @@ jobs: path: | wezterm-*.deb wezterm-*.xz - *src.tar.gz - *.AppImage diff --git a/.github/workflows/gen_ubuntu24.04_continuous.yml b/.github/workflows/gen_ubuntu24.04_continuous.yml index bb7a3924a..e98f114ad 100644 --- a/.github/workflows/gen_ubuntu24.04_continuous.yml +++ b/.github/workflows/gen_ubuntu24.04_continuous.yml @@ -20,10 +20,7 @@ on: - "assets/wezterm-nautilus.py" - "assets/wezterm.appdata.xml" - "assets/wezterm.desktop" - - "ci/appimage.sh" - - "ci/appstreamcli" - "ci/deploy.sh" - - "ci/source-archive.sh" - "ci/tag-name.sh" - "get-deps" - "termwiz/data/wezterm.terminfo" @@ -31,9 +28,7 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: - image: "ubuntu:24.04" - options: --privileged + container: "ubuntu:24.04" env: BUILD_REASON: "Schedule" CARGO_INCREMENTAL: "0" @@ -111,18 +106,6 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" - - name: "Install libfuse2" - shell: bash - run: "apt-get install -y libfuse2" - - name: "Install file" - shell: bash - run: "apt-get install -y file" - - name: "Source Tarball" - shell: bash - run: "bash ci/source-archive.sh" - - name: "Build AppImage" - shell: bash - run: "bash ci/appimage.sh" - name: "Upload artifact" uses: actions/upload-artifact@v7 with: @@ -130,8 +113,6 @@ jobs: path: | wezterm-*.deb wezterm-*.xz - *src.tar.gz - *.AppImage retention-days: 5 upload: @@ -155,9 +136,9 @@ jobs: name: "ubuntu24.04" - name: "Checksum" shell: bash - run: "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage ; do sha256sum $f > $f.sha256 ; done" + run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done" - name: "Upload to Nightly Release" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash - run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.sha256" + run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256" diff --git a/.github/workflows/gen_ubuntu24.04_tag.yml b/.github/workflows/gen_ubuntu24.04_tag.yml index 34b24069b..7033f004f 100644 --- a/.github/workflows/gen_ubuntu24.04_tag.yml +++ b/.github/workflows/gen_ubuntu24.04_tag.yml @@ -8,9 +8,7 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: - image: "ubuntu:24.04" - options: --privileged + container: "ubuntu:24.04" env: CARGO_INCREMENTAL: "0" SCCACHE_GHA_ENABLED: "true" @@ -87,18 +85,6 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" - - name: "Install libfuse2" - shell: bash - run: "apt-get install -y libfuse2" - - name: "Install file" - shell: bash - run: "apt-get install -y file" - - name: "Source Tarball" - shell: bash - run: "bash ci/source-archive.sh" - - name: "Build AppImage" - shell: bash - run: "bash ci/appimage.sh" - name: "Upload artifact" uses: actions/upload-artifact@v7 with: @@ -106,8 +92,6 @@ jobs: path: | wezterm-*.deb wezterm-*.xz - *src.tar.gz - *.AppImage upload: runs-on: ubuntu-latest @@ -124,27 +108,13 @@ jobs: run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v5 - - name: "Checkout linuxbrew tap" - uses: actions/checkout@v5 - with: - repository: "wez/homebrew-wezterm-linuxbrew" - path: "linuxbrew-wezterm" - token: "${{ secrets.GH_PAT }}" - - name: "Update linuxbrew tap formula" - shell: bash - run: "cp wezterm-linuxbrew.rb linuxbrew-wezterm/Formula/wezterm.rb" - - name: "Commit linuxbrew tap changes" - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "Automated update to match latest tag" - repository: "linuxbrew-wezterm" - name: "Download artifact" uses: actions/download-artifact@v8 with: name: "ubuntu24.04" - name: "Checksum" shell: bash - run: "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage ; do sha256sum $f > $f.sha256 ; done" + run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done" - name: "Create pre-release" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -154,18 +124,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash - run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.sha256" - - name: "Checkout flathub/org.wezfurlong.wezterm" - uses: actions/checkout@v5 - with: - repository: "flathub/org.wezfurlong.wezterm" - path: "flathub" - token: "${{ secrets.GH_PAT }}" - - name: "Create flathub commit and push" - shell: bash - run: "bash ci/make-flathub-pr.sh" - - name: "Submit PR" - env: - GITHUB_TOKEN: ${{ secrets.GH_PAT }} - shell: bash - run: 'cd flathub && gh pr create --fill --body "PR automatically created by release automation in the wezterm repo"' + run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *.sha256" diff --git a/.github/workflows/gen_ubuntu26.04.yml b/.github/workflows/gen_ubuntu26.04.yml index d8e385cc2..1a3b15e1b 100644 --- a/.github/workflows/gen_ubuntu26.04.yml +++ b/.github/workflows/gen_ubuntu26.04.yml @@ -18,7 +18,10 @@ on: - "assets/wezterm-nautilus.py" - "assets/wezterm.appdata.xml" - "assets/wezterm.desktop" + - "ci/appimage.sh" + - "ci/appstreamcli" - "ci/deploy.sh" + - "ci/source-archive.sh" - "ci/tag-name.sh" - "get-deps" - "termwiz/data/wezterm.terminfo" @@ -26,7 +29,9 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: "ubuntu:26.04" + container: + image: "ubuntu:26.04" + options: --privileged env: CARGO_INCREMENTAL: "0" SCCACHE_GHA_ENABLED: "true" @@ -103,6 +108,18 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" + - name: "Install libfuse2" + shell: bash + run: "apt-get install -y libfuse2" + - name: "Install file" + shell: bash + run: "apt-get install -y file" + - name: "Source Tarball" + shell: bash + run: "bash ci/source-archive.sh" + - name: "Build AppImage" + shell: bash + run: "bash ci/appimage.sh" - name: "Upload artifact" uses: actions/upload-artifact@v7 with: @@ -110,3 +127,5 @@ jobs: path: | wezterm-*.deb wezterm-*.xz + *src.tar.gz + *.AppImage diff --git a/.github/workflows/gen_ubuntu26.04_continuous.yml b/.github/workflows/gen_ubuntu26.04_continuous.yml index b196774d7..cc0e1fd93 100644 --- a/.github/workflows/gen_ubuntu26.04_continuous.yml +++ b/.github/workflows/gen_ubuntu26.04_continuous.yml @@ -20,7 +20,10 @@ on: - "assets/wezterm-nautilus.py" - "assets/wezterm.appdata.xml" - "assets/wezterm.desktop" + - "ci/appimage.sh" + - "ci/appstreamcli" - "ci/deploy.sh" + - "ci/source-archive.sh" - "ci/tag-name.sh" - "get-deps" - "termwiz/data/wezterm.terminfo" @@ -28,7 +31,9 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: "ubuntu:26.04" + container: + image: "ubuntu:26.04" + options: --privileged env: BUILD_REASON: "Schedule" CARGO_INCREMENTAL: "0" @@ -106,6 +111,18 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" + - name: "Install libfuse2" + shell: bash + run: "apt-get install -y libfuse2" + - name: "Install file" + shell: bash + run: "apt-get install -y file" + - name: "Source Tarball" + shell: bash + run: "bash ci/source-archive.sh" + - name: "Build AppImage" + shell: bash + run: "bash ci/appimage.sh" - name: "Upload artifact" uses: actions/upload-artifact@v7 with: @@ -113,6 +130,8 @@ jobs: path: | wezterm-*.deb wezterm-*.xz + *src.tar.gz + *.AppImage retention-days: 5 upload: @@ -136,9 +155,9 @@ jobs: name: "ubuntu26.04" - name: "Checksum" shell: bash - run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done" + run: "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage ; do sha256sum $f > $f.sha256 ; done" - name: "Upload to Nightly Release" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash - run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256" + run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.sha256" diff --git a/.github/workflows/gen_ubuntu26.04_tag.yml b/.github/workflows/gen_ubuntu26.04_tag.yml index c3e27efb4..c7910f99e 100644 --- a/.github/workflows/gen_ubuntu26.04_tag.yml +++ b/.github/workflows/gen_ubuntu26.04_tag.yml @@ -8,7 +8,9 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: "ubuntu:26.04" + container: + image: "ubuntu:26.04" + options: --privileged env: CARGO_INCREMENTAL: "0" SCCACHE_GHA_ENABLED: "true" @@ -85,6 +87,18 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" + - name: "Install libfuse2" + shell: bash + run: "apt-get install -y libfuse2" + - name: "Install file" + shell: bash + run: "apt-get install -y file" + - name: "Source Tarball" + shell: bash + run: "bash ci/source-archive.sh" + - name: "Build AppImage" + shell: bash + run: "bash ci/appimage.sh" - name: "Upload artifact" uses: actions/upload-artifact@v7 with: @@ -92,6 +106,8 @@ jobs: path: | wezterm-*.deb wezterm-*.xz + *src.tar.gz + *.AppImage upload: runs-on: ubuntu-latest @@ -108,13 +124,27 @@ jobs: run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v5 + - name: "Checkout linuxbrew tap" + uses: actions/checkout@v5 + with: + repository: "wez/homebrew-wezterm-linuxbrew" + path: "linuxbrew-wezterm" + token: "${{ secrets.GH_PAT }}" + - name: "Update linuxbrew tap formula" + shell: bash + run: "cp wezterm-linuxbrew.rb linuxbrew-wezterm/Formula/wezterm.rb" + - name: "Commit linuxbrew tap changes" + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "Automated update to match latest tag" + repository: "linuxbrew-wezterm" - name: "Download artifact" uses: actions/download-artifact@v8 with: name: "ubuntu26.04" - name: "Checksum" shell: bash - run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done" + run: "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage ; do sha256sum $f > $f.sha256 ; done" - name: "Create pre-release" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -124,4 +154,18 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash - run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *.sha256" + run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.sha256" + - name: "Checkout flathub/org.wezfurlong.wezterm" + uses: actions/checkout@v5 + with: + repository: "flathub/org.wezfurlong.wezterm" + path: "flathub" + token: "${{ secrets.GH_PAT }}" + - name: "Create flathub commit and push" + shell: bash + run: "bash ci/make-flathub-pr.sh" + - name: "Submit PR" + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + shell: bash + run: 'cd flathub && gh pr create --fill --body "PR automatically created by release automation in the wezterm repo"' diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index a7551af98..ee2b58db5 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -7,7 +7,8 @@ from copy import deepcopy # The build from this target will be pushed to the gemfury APT repo GEMFURY_TARGET = "ubuntu:22.04" # The build from this target will be baked into the AppImage -APPIMAGE_TARGET = "ubuntu:24.04" +# This target is also used for updating the flathub & linuxbrew repos +APPIMAGE_TARGET = "ubuntu:26.04" TRIGGER_PATHS = [ "**/*.rs",