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