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