From a0ec2c18b4bbed7832a08adcbb518c972fe2002d Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 19 Mar 2023 22:45:50 -0700 Subject: [PATCH] ci: remove some builds GH actions has been awful slow and bogged down recently, getting in the way of work that is more important. This commit removes a variety of alpine builds (which are not widely used by wezterm users), and the eldest fedora version to free up some resources. --- .github/workflows/gen_alpine3.12.yml | 100 --------------- .../workflows/gen_alpine3.12_continuous.yml | 121 ------------------ .github/workflows/gen_alpine3.12_tag.yml | 113 ---------------- .github/workflows/gen_alpine3.13.yml | 100 --------------- .../workflows/gen_alpine3.13_continuous.yml | 121 ------------------ .github/workflows/gen_alpine3.13_tag.yml | 113 ---------------- .github/workflows/gen_alpine3.14.yml | 100 --------------- .../workflows/gen_alpine3.14_continuous.yml | 121 ------------------ .github/workflows/gen_alpine3.14_tag.yml | 113 ---------------- .github/workflows/gen_fedora34.yml | 89 ------------- .github/workflows/gen_fedora34_continuous.yml | 117 ----------------- .github/workflows/gen_fedora34_tag.yml | 100 --------------- ci/generate-workflows.py | 11 +- docs/install/linux.markdown | 8 +- 14 files changed, 11 insertions(+), 1316 deletions(-) delete mode 100644 .github/workflows/gen_alpine3.12.yml delete mode 100644 .github/workflows/gen_alpine3.12_continuous.yml delete mode 100644 .github/workflows/gen_alpine3.12_tag.yml delete mode 100644 .github/workflows/gen_alpine3.13.yml delete mode 100644 .github/workflows/gen_alpine3.13_continuous.yml delete mode 100644 .github/workflows/gen_alpine3.13_tag.yml delete mode 100644 .github/workflows/gen_alpine3.14.yml delete mode 100644 .github/workflows/gen_alpine3.14_continuous.yml delete mode 100644 .github/workflows/gen_alpine3.14_tag.yml delete mode 100644 .github/workflows/gen_fedora34.yml delete mode 100644 .github/workflows/gen_fedora34_continuous.yml delete mode 100644 .github/workflows/gen_fedora34_tag.yml diff --git a/.github/workflows/gen_alpine3.12.yml b/.github/workflows/gen_alpine3.12.yml deleted file mode 100644 index 9a1a0419b..000000000 --- a/.github/workflows/gen_alpine3.12.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: alpine3.12 - -on: - pull_request: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_alpine3.12.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.12" - env: - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Rename APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk $(echo ~/packages/wezterm/x86_64/*.apk | sed -e 's/wezterm-/wezterm-alpine3.12-/')" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk ." - - name: "Move APK keys" - shell: bash - run: "mv ~/.abuild/*.pub wezterm-alpine3.12.pub" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.12" - path: "wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.12_continuous.yml b/.github/workflows/gen_alpine3.12_continuous.yml deleted file mode 100644 index 52acbd2da..000000000 --- a/.github/workflows/gen_alpine3.12_continuous.yml +++ /dev/null @@ -1,121 +0,0 @@ -name: alpine3.12_continuous - -on: - schedule: - - cron: "10 3 * * *" - push: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_alpine3.12_continuous.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.12" - env: - BUILD_REASON: "Schedule" - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk wezterm-nightly-alpine3.12.apk" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.12" - path: "wezterm-*.apk" - retention-days: 5 - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "alpine3.12" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.apk ; 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-*.apk *.sha256" diff --git a/.github/workflows/gen_alpine3.12_tag.yml b/.github/workflows/gen_alpine3.12_tag.yml deleted file mode 100644 index fcb80472e..000000000 --- a/.github/workflows/gen_alpine3.12_tag.yml +++ /dev/null @@ -1,113 +0,0 @@ -name: alpine3.12_tag - -on: - push: - tags: - - "20*" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.12" - env: - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Rename APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk $(echo ~/packages/wezterm/x86_64/*.apk | sed -e 's/wezterm-/wezterm-alpine3.12-/')" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk ." - - name: "Move APK keys" - shell: bash - run: "mv ~/.abuild/*.pub wezterm-alpine3.12.pub" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.12" - path: | - wezterm-*.apk - *.pub - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "alpine3.12" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.apk *.pub ; do sha256sum $f > $f.sha256 ; done" - - name: "Create pre-release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" - - name: "Upload to Tagged Release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub *.sha256" diff --git a/.github/workflows/gen_alpine3.13.yml b/.github/workflows/gen_alpine3.13.yml deleted file mode 100644 index 0132593fc..000000000 --- a/.github/workflows/gen_alpine3.13.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: alpine3.13 - -on: - pull_request: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_alpine3.13.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.13" - env: - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.13-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Rename APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk $(echo ~/packages/wezterm/x86_64/*.apk | sed -e 's/wezterm-/wezterm-alpine3.13-/')" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk ." - - name: "Move APK keys" - shell: bash - run: "mv ~/.abuild/*.pub wezterm-alpine3.13.pub" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.13" - path: "wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.13_continuous.yml b/.github/workflows/gen_alpine3.13_continuous.yml deleted file mode 100644 index 65e2f473f..000000000 --- a/.github/workflows/gen_alpine3.13_continuous.yml +++ /dev/null @@ -1,121 +0,0 @@ -name: alpine3.13_continuous - -on: - schedule: - - cron: "10 3 * * *" - push: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_alpine3.13_continuous.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.13" - env: - BUILD_REASON: "Schedule" - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.13-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk wezterm-nightly-alpine3.13.apk" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.13" - path: "wezterm-*.apk" - retention-days: 5 - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "alpine3.13" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.apk ; 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-*.apk *.sha256" diff --git a/.github/workflows/gen_alpine3.13_tag.yml b/.github/workflows/gen_alpine3.13_tag.yml deleted file mode 100644 index 8232b5d35..000000000 --- a/.github/workflows/gen_alpine3.13_tag.yml +++ /dev/null @@ -1,113 +0,0 @@ -name: alpine3.13_tag - -on: - push: - tags: - - "20*" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.13" - env: - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.13-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Rename APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk $(echo ~/packages/wezterm/x86_64/*.apk | sed -e 's/wezterm-/wezterm-alpine3.13-/')" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk ." - - name: "Move APK keys" - shell: bash - run: "mv ~/.abuild/*.pub wezterm-alpine3.13.pub" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.13" - path: | - wezterm-*.apk - *.pub - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "alpine3.13" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.apk *.pub ; do sha256sum $f > $f.sha256 ; done" - - name: "Create pre-release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" - - name: "Upload to Tagged Release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub *.sha256" diff --git a/.github/workflows/gen_alpine3.14.yml b/.github/workflows/gen_alpine3.14.yml deleted file mode 100644 index 04911be44..000000000 --- a/.github/workflows/gen_alpine3.14.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: alpine3.14 - -on: - pull_request: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_alpine3.14.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.14" - env: - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.14-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Rename APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk $(echo ~/packages/wezterm/x86_64/*.apk | sed -e 's/wezterm-/wezterm-alpine3.14-/')" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk ." - - name: "Move APK keys" - shell: bash - run: "mv ~/.abuild/*.pub wezterm-alpine3.14.pub" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.14" - path: "wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.14_continuous.yml b/.github/workflows/gen_alpine3.14_continuous.yml deleted file mode 100644 index 50468ef37..000000000 --- a/.github/workflows/gen_alpine3.14_continuous.yml +++ /dev/null @@ -1,121 +0,0 @@ -name: alpine3.14_continuous - -on: - schedule: - - cron: "10 3 * * *" - push: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_alpine3.14_continuous.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.14" - env: - BUILD_REASON: "Schedule" - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.14-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk wezterm-nightly-alpine3.14.apk" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.14" - path: "wezterm-*.apk" - retention-days: 5 - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "alpine3.14" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.apk ; 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-*.apk *.sha256" diff --git a/.github/workflows/gen_alpine3.14_tag.yml b/.github/workflows/gen_alpine3.14_tag.yml deleted file mode 100644 index 4971dbe78..000000000 --- a/.github/workflows/gen_alpine3.14_tag.yml +++ /dev/null @@ -1,113 +0,0 @@ -name: alpine3.14_tag - -on: - push: - tags: - - "20*" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "alpine:3.14" - env: - RUSTFLAGS: "-C target-feature=-crt-static" - - steps: - - name: "Upgrade system" - shell: sh - run: "apk upgrade --update-cache" - - name: "Install CI dependencies" - shell: sh - run: "apk add nodejs zstd wget bash coreutils tar findutils" - - name: "Allow root login" - shell: bash - run: "sed 's/root:!/root:*/g' -i /etc/shadow" - - name: "Install git" - shell: bash - run: "apk add git" - - name: "Install curl" - shell: bash - run: "apk add curl" - - name: "Install openssh" - shell: bash - run: "apk add openssh" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "alpine3.14-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Rename APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk $(echo ~/packages/wezterm/x86_64/*.apk | sed -e 's/wezterm-/wezterm-alpine3.14-/')" - - name: "Move APKs" - shell: bash - run: "mv ~/packages/wezterm/x86_64/*.apk ." - - name: "Move APK keys" - shell: bash - run: "mv ~/.abuild/*.pub wezterm-alpine3.14.pub" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "alpine3.14" - path: | - wezterm-*.apk - *.pub - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "alpine3.14" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.apk *.pub ; do sha256sum $f > $f.sha256 ; done" - - name: "Create pre-release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" - - name: "Upload to Tagged Release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.apk *.pub *.sha256" diff --git a/.github/workflows/gen_fedora34.yml b/.github/workflows/gen_fedora34.yml deleted file mode 100644 index e0b077499..000000000 --- a/.github/workflows/gen_fedora34.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: fedora34 - -on: - pull_request: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_fedora34.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "fedora:34" - - steps: - - name: "Install config manager" - shell: bash - run: "dnf install -y 'dnf-command(config-manager)'" - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "Ensure /run/sshd exists" - shell: bash - run: "mkdir -p /run/sshd" - - name: "Install openssh-server" - shell: bash - run: "yum install -y openssh-server" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move RPM" - shell: bash - run: "mv ~/rpmbuild/RPMS/*/*.rpm ." - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "fedora34" - path: "wezterm-*.rpm" diff --git a/.github/workflows/gen_fedora34_continuous.yml b/.github/workflows/gen_fedora34_continuous.yml deleted file mode 100644 index 912417b0e..000000000 --- a/.github/workflows/gen_fedora34_continuous.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: fedora34_continuous - -on: - schedule: - - cron: "10 3 * * *" - push: - branches: - - main - paths: - - "**/*.rs" - - "**/Cargo.lock" - - "**/Cargo.toml" - - ".github/workflows/gen_fedora34_continuous.yml" - - "assets/fonts/**/*" - - "assets/icon/*" - - "assets/open-wezterm-here" - - "assets/shell-completion/**/*" - - "assets/shell-integration/**/*" - - "assets/wezterm-nautilus.py" - - "assets/wezterm.appdata.xml" - - "assets/wezterm.desktop" - - "ci/deploy.sh" - - "get-deps" - - "tag-name.sh" - - "termwiz/data/wezterm.terminfo" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "fedora:34" - env: - BUILD_REASON: "Schedule" - - steps: - - name: "Install config manager" - shell: bash - run: "dnf install -y 'dnf-command(config-manager)'" - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "Ensure /run/sshd exists" - shell: bash - run: "mkdir -p /run/sshd" - - name: "Install openssh-server" - shell: bash - run: "yum install -y openssh-server" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move RPM" - shell: bash - run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm" - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "fedora34" - path: "wezterm-*.rpm" - retention-days: 5 - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "fedora34" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.rpm ; 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-*.rpm *.sha256" diff --git a/.github/workflows/gen_fedora34_tag.yml b/.github/workflows/gen_fedora34_tag.yml deleted file mode 100644 index 771843b94..000000000 --- a/.github/workflows/gen_fedora34_tag.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: fedora34_tag - -on: - push: - tags: - - "20*" - -jobs: - build: - runs-on: "ubuntu-latest" - container: "fedora:34" - - steps: - - name: "Install config manager" - shell: bash - run: "dnf install -y 'dnf-command(config-manager)'" - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "Ensure /run/sshd exists" - shell: bash - run: "mkdir -p /run/sshd" - - name: "Install openssh-server" - shell: bash - run: "yum install -y openssh-server" - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - with: - submodules: "recursive" - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move RPM" - shell: bash - run: "mv ~/rpmbuild/RPMS/*/*.rpm ." - - name: "Upload artifact" - uses: actions/upload-artifact@v3 - with: - name: "fedora34" - path: "wezterm-*.rpm" - - upload: - runs-on: ubuntu-latest - needs: build - - steps: - - name: "Workaround git permissions issue" - shell: bash - run: "git config --global --add safe.directory /__w/wezterm/wezterm" - - name: "checkout repo" - uses: actions/checkout@v3 - - name: "Download artifact" - uses: actions/download-artifact@v3 - with: - name: "fedora34" - - name: "Checksum" - shell: bash - run: "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done" - - name: "Create pre-release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" - - name: "Upload to Tagged Release" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.rpm *.sha256" diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index 15b7eb2f5..8c311b52a 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import os import sys +import glob from copy import deepcopy TRIGGER_PATHS = [ @@ -881,13 +882,9 @@ TARGETS = [ Target(name="centos9", container="quay.io/centos/centos:stream9"), Target(name="macos", os="macos-11"), # https://fedoraproject.org/wiki/End_of_life?rd=LifeCycle/EOL - Target(container="fedora:34"), Target(container="fedora:35"), Target(container="fedora:36"), Target(container="fedora:37"), - Target(container="alpine:3.12"), - Target(container="alpine:3.13"), - Target(container="alpine:3.14"), Target(container="alpine:3.15"), Target(name="opensuse_leap", container="registry.opensuse.org/opensuse/leap:15.3"), Target( @@ -1024,6 +1021,12 @@ on: ) +def remove_gen_actions(): + for name in glob.glob(".github/workflows/gen_*.yml"): + os.remove(name) + + +remove_gen_actions() generate_pr_actions() continuous_actions() tag_actions() diff --git a/docs/install/linux.markdown b/docs/install/linux.markdown index bb6dc1239..404750d06 100644 --- a/docs/install/linux.markdown +++ b/docs/install/linux.markdown @@ -111,7 +111,7 @@ on most Linux systems. |CentOS8 |[{{ centos8_rpm_stable_asset }}]({{ centos8_rpm_stable }}) |[{{ centos8_rpm_nightly_asset }}]({{ centos8_rpm_nightly }})| |CentOS9 |[{{ centos9_rpm_stable_asset }}]({{ centos9_rpm_stable }})|[{{ centos9_rpm_nightly_asset }}]({{ centos9_rpm_nightly }})| |Fedora33 |[{{ fedora33_rpm_stable_asset }}]({{ fedora33_rpm_stable }}) |No longer provided| -|Fedora34 |[{{ fedora34_rpm_stable_asset }}]({{ fedora34_rpm_stable }}) |[{{ fedora34_rpm_nightly_asset }}]({{ fedora34_rpm_nightly }})| +|Fedora34 |[{{ fedora34_rpm_stable_asset }}]({{ fedora34_rpm_stable }}) |No longer provided| |Fedora35 |[{{ fedora35_rpm_stable_asset }}]({{ fedora35_rpm_stable }}) |[{{ fedora35_rpm_nightly_asset }}]({{ fedora35_rpm_nightly }})| |Fedora36 |[{{ fedora36_rpm_stable_asset }}]({{ fedora36_rpm_stable }})|[{{ fedora36_rpm_nightly_asset }}]({{ fedora36_rpm_nightly }})| |Fedora37 |Nightly builds only |[{{ fedora37_rpm_nightly_asset }}]({{ fedora37_rpm_nightly }})| @@ -155,9 +155,9 @@ APKs are built out from the `main` branch. |Version | Stable | Nightly | |--------|---------------|---------| -| 3.12 |[{{ alpine3_12_apk_stable_asset }}]({{ alpine3_12_apk_stable }})|[{{ alpine3_12_apk_nightly_asset }}]({{ alpine3_12_apk_nightly }})| -| 3.13 |[{{ alpine3_13_apk_stable_asset }}]({{ alpine3_13_apk_stable }})|[{{ alpine3_13_apk_nightly_asset }}]({{ alpine3_13_apk_nightly }})| -| 3.14 |[{{ alpine3_14_apk_stable_asset }}]({{ alpine3_14_apk_stable }})|[{{ alpine3_14_apk_nightly_asset }}]({{ alpine3_14_apk_nightly }})| +| 3.12 |[{{ alpine3_12_apk_stable_asset }}]({{ alpine3_12_apk_stable }})|no longer provided| +| 3.13 |[{{ alpine3_13_apk_stable_asset }}]({{ alpine3_13_apk_stable }})|no longer provided| +| 3.14 |[{{ alpine3_14_apk_stable_asset }}]({{ alpine3_14_apk_stable }})|no longer provided| | 3.15 |[{{ alpine3_15_apk_stable_asset }}]({{ alpine3_15_apk_stable }})|[{{ alpine3_15_apk_nightly_asset }}]({{ alpine3_15_apk_nightly }})| ## Linuxbrew Tap