fork/wezterm
git clone https://git.julia.blue/fork/wezterm
836a0855f
termwiz-0.23.0
1name : fedora40_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_fedora40_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 : "fedora:40" 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 : "Install git" 42shell : bash 43run : "yum install -y git" 44- name : "Install curl" 45shell : bash 46run : "yum install -y curl" 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 : "fedora40" 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 wezterm-nightly-fedora40.rpm" 105- name : "Upload artifact" 106uses : actions/upload-artifact@v4 107with : 108name : "fedora40" 109path : "wezterm-*.rpm" 110retention-days : 5 111 112upload : 113runs-on : ubuntu-latest 114needs : build 115permissions : 116contents : write 117pages : write 118id-token : write 119 120steps : 121- name : "Workaround git permissions issue" 122shell : bash 123run : "git config --global --add safe.directory /__w/wezterm/wezterm" 124- name : "checkout repo" 125uses : actions/checkout@v4 126- name : "Download artifact" 127uses : actions/download-artifact@v4 128with : 129name : "fedora40" 130- name : "Checksum" 131shell : bash 132run : "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done" 133- name : "Upload to Nightly Release" 134env : 135GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 136shell : bash 137run : "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"