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