fork/wezterm
git clone https://git.julia.blue/fork/wezterm
7d0bff069
termwiz-0.23.3
1name : fedora39_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_fedora39_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 : "fedora:39" 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 : "Install git" 43shell : bash 44run : "yum install -y git" 45- name : "Install curl" 46shell : bash 47run : "yum install -y curl" 48- name : "Ensure /run/sshd exists" 49shell : bash 50run : "mkdir -p /run/sshd" 51- name : "Install openssh-server" 52shell : bash 53run : "yum install -y openssh-server" 54- name : "Workaround git permissions issue" 55shell : bash 56run : "git config --global --add safe.directory /__w/wezterm/wezterm" 57- name : "checkout repo" 58uses : actions/checkout@v4 59with : 60submodules : "recursive" 61- name : "Install Rust" 62uses : dtolnay/rust-toolchain@stable 63- name : "Compile with sccache" 64uses : mozilla-actions/sccache-action@v0.0.7 65- name : "Cache Rust Dependencies" 66uses : actions/cache@v4 67id : cache-cargo-vendor 68with : 69path : | 70vendor 71.cargo/config 72key : "cargo-deps-${{ hashFiles('**/Cargo.lock') }}" 73- name : "Vendor dependecies" 74if : steps.cache-cargo-vendor.outputs.cache-hit != 'true' 75shell : bash 76run : "cargo vendor --locked --versioned-dirs >> .cargo/config" 77- name : "Install System Deps" 78shell : bash 79run : "env CI=yes PATH=$PATH ./get-deps" 80- name : "Build wezterm (Release mode)" 81shell : bash 82run : "cargo build -p wezterm --release" 83- name : "Build wezterm-gui (Release mode)" 84shell : bash 85run : "cargo build -p wezterm-gui --release" 86- name : "Build wezterm-mux-server (Release mode)" 87shell : bash 88run : "cargo build -p wezterm-mux-server --release" 89- name : "Build strip-ansi-escapes (Release mode)" 90shell : bash 91run : "cargo build -p strip-ansi-escapes --release" 92- name : "Install cargo-nextest from Cargo" 93uses : baptiste0928/cargo-install@v3 94with : 95crate : "cargo-nextest" 96cache-key : "fedora39" 97- name : "Test" 98shell : bash 99run : "cargo nextest run --all --no-fail-fast" 100- name : "Package" 101shell : bash 102run : "bash ci/deploy.sh" 103- name : "Move RPM" 104shell : bash 105run : "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora39.rpm" 106- name : "Upload artifact" 107uses : actions/upload-artifact@v4 108with : 109name : "fedora39" 110path : "wezterm-*.rpm" 111retention-days : 5 112 113upload : 114runs-on : ubuntu-latest 115needs : build 116if : github.repository == 'wezterm/wezterm' 117permissions : 118contents : write 119pages : write 120id-token : write 121 122steps : 123- name : "Workaround git permissions issue" 124shell : bash 125run : "git config --global --add safe.directory /__w/wezterm/wezterm" 126- name : "checkout repo" 127uses : actions/checkout@v4 128- name : "Download artifact" 129uses : actions/download-artifact@v4 130with : 131name : "fedora39" 132- name : "Checksum" 133shell : bash 134run : "for f in wezterm-*.rpm ; do sha256sum $f > $f.sha256 ; done" 135- name : "Upload to Nightly Release" 136env : 137GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 138shell : bash 139run : "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm *.sha256"