fork/wezterm
git clone https://git.julia.blue/fork/wezterm
7d0bff069
termwiz-0.23.3
1name : centos9 2 3on : 4pull_request : 5branches : 6- main 7paths : 8- "**/*.rs" 9- "**/Cargo.lock" 10- "**/Cargo.toml" 11- ".cargo/config.toml" 12- ".github/workflows/gen_centos9.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 : "quay.io/centos/centos:stream9" 30env : 31CARGO_INCREMENTAL : "0" 32SCCACHE_GHA_ENABLED : "true" 33RUSTC_WRAPPER : "sccache" 34 35steps : 36- name : "Install config manager" 37shell : bash 38run : "dnf install -y 'dnf-command(config-manager)'" 39- name : "Enable CRB repo for X bits" 40shell : bash 41run : "dnf config-manager --set-enabled crb" 42- name : "Install git" 43shell : bash 44run : "yum install -y git" 45- name : "Install curl-minimal" 46shell : bash 47run : "yum install -y curl-minimal" 48- name : "Ensure /run/sshd exists" 49shell : bash 50run : "mkdir -p /run/sshd" 51- name : "Install openssh-server" 52shell : bash 53run : "yum install -y openssh-server" 54- name : "Workaround git permissions issue" 55shell : bash 56run : "git config --global --add safe.directory /__w/wezterm/wezterm" 57- name : "checkout repo" 58uses : actions/checkout@v4 59with : 60submodules : "recursive" 61- name : "Install Rust" 62uses : dtolnay/rust-toolchain@stable 63- name : "Compile with sccache" 64uses : mozilla-actions/sccache-action@v0.0.7 65- name : "Cache Rust Dependencies" 66uses : actions/cache@v4 67id : cache-cargo-vendor 68with : 69path : | 70vendor 71.cargo/config 72key : "cargo-deps-${{ hashFiles('**/Cargo.lock') }}" 73- name : "Vendor dependecies" 74if : steps.cache-cargo-vendor.outputs.cache-hit != 'true' 75shell : bash 76run : "cargo vendor --locked --versioned-dirs >> .cargo/config" 77- name : "Install System Deps" 78shell : bash 79run : "env CI=yes PATH=$PATH ./get-deps" 80- name : "Build wezterm (Release mode)" 81shell : bash 82run : "cargo build -p wezterm --release" 83- name : "Build wezterm-gui (Release mode)" 84shell : bash 85run : "cargo build -p wezterm-gui --release" 86- name : "Build wezterm-mux-server (Release mode)" 87shell : bash 88run : "cargo build -p wezterm-mux-server --release" 89- name : "Build strip-ansi-escapes (Release mode)" 90shell : bash 91run : "cargo build -p strip-ansi-escapes --release" 92- name : "Install cargo-nextest from Cargo" 93uses : baptiste0928/cargo-install@v3 94with : 95crate : "cargo-nextest" 96cache-key : "centos9" 97- name : "Test" 98shell : bash 99run : "cargo nextest run --all --no-fail-fast" 100- name : "Package" 101shell : bash 102run : "bash ci/deploy.sh" 103- name : "Move RPM" 104shell : bash 105run : "mv ~/rpmbuild/RPMS/*/*.rpm ." 106- name : "Upload artifact" 107uses : actions/upload-artifact@v4 108with : 109name : "centos9" 110path : "wezterm-*.rpm"