fork/wezterm
git clone https://git.julia.blue/fork/wezterm
7d0bff069
termwiz-0.23.3
1name : centos9_continuous 2 3on : 4schedule : 5- cron : "10 3 * * *" 6push : 7branches : 8- main 9paths : 10- "**/*.rs" 11- "**/Cargo.lock" 12- "**/Cargo.toml" 13- ".cargo/config.toml" 14- ".github/workflows/gen_centos9_continuous.yml" 15- "assets/fonts/**/*" 16- "assets/icon/*" 17- "assets/open-wezterm-here" 18- "assets/shell-completion/**/*" 19- "assets/shell-integration/**/*" 20- "assets/wezterm-nautilus.py" 21- "assets/wezterm.appdata.xml" 22- "assets/wezterm.desktop" 23- "ci/deploy.sh" 24- "ci/tag-name.sh" 25- "get-deps" 26- "termwiz/data/wezterm.terminfo" 27 28jobs : 29build : 30runs-on : "ubuntu-latest" 31container : "quay.io/centos/centos:stream9" 32env : 33BUILD_REASON : "Schedule" 34CARGO_INCREMENTAL : "0" 35SCCACHE_GHA_ENABLED : "true" 36RUSTC_WRAPPER : "sccache" 37 38steps : 39- name : "Install config manager" 40shell : bash 41run : "dnf install -y 'dnf-command(config-manager)'" 42- name : "Enable CRB repo for X bits" 43shell : bash 44run : "dnf config-manager --set-enabled crb" 45- name : "Install git" 46shell : bash 47run : "yum install -y git" 48- name : "Install curl-minimal" 49shell : bash 50run : "yum install -y curl-minimal" 51- name : "Ensure /run/sshd exists" 52shell : bash 53run : "mkdir -p /run/sshd" 54- name : "Install openssh-server" 55shell : bash 56run : "yum 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.7 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 : "centos9" 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 : "Move RPM" 107shell : bash 108run : "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos9.rpm" 109- name : "Upload artifact" 110uses : actions/upload-artifact@v4 111with : 112name : "centos9" 113path : "wezterm-*.rpm" 114retention-days : 5 115 116upload : 117runs-on : ubuntu-latest 118needs : build 119if : github.repository == 'wezterm/wezterm' 120permissions : 121contents : write 122pages : write 123id-token : write 124 125steps : 126- name : "Workaround git permissions issue" 127shell : bash 128run : "git config --global --add safe.directory /__w/wezterm/wezterm" 129- name : "checkout repo" 130uses : actions/checkout@v4 131- name : "Download artifact" 132uses : actions/download-artifact@v4 133with : 134name : "centos9" 135- name : "Checksum" 136shell : bash 137run : "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done" 138- name : "Upload to Nightly Release" 139env : 140GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 141shell : bash 142run : "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"