fork/wezterm
git clone https://git.julia.blue/fork/wezterm
836a0855f
termwiz-0.23.0
1name : ubuntu20.04_continuous 2 3on : 4schedule : 5- cron : "10 3 * * *" 6push : 7branches : 8- main 9paths : 10- "**/*.rs" 11- "**/Cargo.lock" 12- "**/Cargo.toml" 13- ".github/workflows/gen_ubuntu20.04_continuous.yml" 14- "assets/fonts/**/*" 15- "assets/icon/*" 16- "assets/open-wezterm-here" 17- "assets/shell-completion/**/*" 18- "assets/shell-integration/**/*" 19- "assets/wezterm-nautilus.py" 20- "assets/wezterm.appdata.xml" 21- "assets/wezterm.desktop" 22- "ci/appimage.sh" 23- "ci/appstreamcli" 24- "ci/deploy.sh" 25- "ci/source-archive.sh" 26- "ci/tag-name.sh" 27- "get-deps" 28- "termwiz/data/wezterm.terminfo" 29 30jobs : 31build : 32runs-on : "ubuntu-latest" 33container : 34image : "ubuntu:20.04" 35options : --privileged 36env : 37BUILD_REASON : "Schedule" 38CARGO_INCREMENTAL : "0" 39SCCACHE_GHA_ENABLED : "true" 40RUSTC_WRAPPER : "sccache" 41 42steps : 43- name : "set APT to non-interactive" 44shell : bash 45run : "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" 46- name : "Update APT" 47shell : bash 48run : "apt update" 49- name : "Install git" 50shell : bash 51run : "apt-get install -y git" 52- name : "Install curl" 53shell : bash 54run : "apt-get install -y curl" 55- name : "Update APT" 56shell : bash 57run : "apt update" 58- name : "Ensure /run/sshd exists" 59shell : bash 60run : "mkdir -p /run/sshd" 61- name : "Install openssh-server" 62shell : bash 63run : "apt-get install -y openssh-server" 64- name : "Workaround git permissions issue" 65shell : bash 66run : "git config --global --add safe.directory /__w/wezterm/wezterm" 67- name : "checkout repo" 68uses : actions/checkout@v4 69with : 70submodules : "recursive" 71- name : "Install Rust" 72uses : dtolnay/rust-toolchain@stable 73- name : "Compile with sccache" 74uses : mozilla-actions/sccache-action@v0.0.7 75- name : "Cache Rust Dependencies" 76uses : actions/cache@v4 77id : cache-cargo-vendor 78with : 79path : | 80vendor 81.cargo/config 82key : "cargo-deps-${{ hashFiles('**/Cargo.lock') }}" 83- name : "Vendor dependecies" 84if : steps.cache-cargo-vendor.outputs.cache-hit != 'true' 85shell : bash 86run : "cargo vendor --locked --versioned-dirs >> .cargo/config" 87- name : "Install System Deps" 88shell : bash 89run : "env CI=yes PATH=$PATH ./get-deps" 90- name : "Build wezterm (Release mode)" 91shell : bash 92run : "cargo build -p wezterm --release" 93- name : "Build wezterm-gui (Release mode)" 94shell : bash 95run : "cargo build -p wezterm-gui --release" 96- name : "Build wezterm-mux-server (Release mode)" 97shell : bash 98run : "cargo build -p wezterm-mux-server --release" 99- name : "Build strip-ansi-escapes (Release mode)" 100shell : bash 101run : "cargo build -p strip-ansi-escapes --release" 102- name : "Install cargo-nextest from Cargo" 103uses : baptiste0928/cargo-install@v3 104with : 105crate : "cargo-nextest" 106cache-key : "ubuntu20.04" 107- name : "Test" 108shell : bash 109run : "cargo nextest run --all --no-fail-fast" 110- name : "Package" 111shell : bash 112run : "bash ci/deploy.sh" 113- name : "Install libfuse2" 114shell : bash 115run : "apt-get install -y libfuse2" 116- name : "Source Tarball" 117shell : bash 118run : "bash ci/source-archive.sh" 119- name : "Build AppImage" 120shell : bash 121run : "bash ci/appimage.sh" 122- name : "Upload artifact" 123uses : actions/upload-artifact@v4 124with : 125name : "ubuntu20.04" 126path : | 127wezterm-*.deb 128wezterm-*.xz 129*src.tar.gz 130*.AppImage 131*.zsync 132retention-days : 5 133 134upload : 135runs-on : ubuntu-latest 136needs : build 137permissions : 138contents : write 139pages : write 140id-token : write 141 142steps : 143- name : "Workaround git permissions issue" 144shell : bash 145run : "git config --global --add safe.directory /__w/wezterm/wezterm" 146- name : "checkout repo" 147uses : actions/checkout@v4 148- name : "Download artifact" 149uses : actions/download-artifact@v4 150with : 151name : "ubuntu20.04" 152- name : "Checksum" 153shell : bash 154run : "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync ; do sha256sum $f > $f.sha256 ; done" 155- name : "Upload to Nightly Release" 156env : 157GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 158shell : bash 159run : "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync *.sha256"