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