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