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