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