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