fork/wezterm
git clone https://git.julia.blue/fork/wezterm
7d0bff069
termwiz-0.23.3
1name : ubuntu22.04_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_ubuntu22.04_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 : "ubuntu:22.04" 32env : 33BUILD_REASON : "Schedule" 34CARGO_INCREMENTAL : "0" 35SCCACHE_GHA_ENABLED : "true" 36RUSTC_WRAPPER : "sccache" 37 38steps : 39- name : "set APT to non-interactive" 40shell : bash 41run : "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" 42- name : "Update APT" 43shell : bash 44run : "apt update" 45- name : "Install git" 46shell : bash 47run : "apt-get install -y git" 48- name : "Install curl" 49shell : bash 50run : "apt-get install -y curl" 51- name : "Update APT" 52shell : bash 53run : "apt update" 54- name : "Ensure /run/sshd exists" 55shell : bash 56run : "mkdir -p /run/sshd" 57- name : "Install openssh-server" 58shell : bash 59run : "apt-get install -y openssh-server" 60- name : "Workaround git permissions issue" 61shell : bash 62run : "git config --global --add safe.directory /__w/wezterm/wezterm" 63- name : "checkout repo" 64uses : actions/checkout@v4 65with : 66submodules : "recursive" 67- name : "Install Rust" 68uses : dtolnay/rust-toolchain@stable 69- name : "Compile with sccache" 70uses : mozilla-actions/sccache-action@v0.0.7 71- name : "Cache Rust Dependencies" 72uses : actions/cache@v4 73id : cache-cargo-vendor 74with : 75path : | 76vendor 77.cargo/config 78key : "cargo-deps-${{ hashFiles('**/Cargo.lock') }}" 79- name : "Vendor dependecies" 80if : steps.cache-cargo-vendor.outputs.cache-hit != 'true' 81shell : bash 82run : "cargo vendor --locked --versioned-dirs >> .cargo/config" 83- name : "Install System Deps" 84shell : bash 85run : "env CI=yes PATH=$PATH ./get-deps" 86- name : "Build wezterm (Release mode)" 87shell : bash 88run : "cargo build -p wezterm --release" 89- name : "Build wezterm-gui (Release mode)" 90shell : bash 91run : "cargo build -p wezterm-gui --release" 92- name : "Build wezterm-mux-server (Release mode)" 93shell : bash 94run : "cargo build -p wezterm-mux-server --release" 95- name : "Build strip-ansi-escapes (Release mode)" 96shell : bash 97run : "cargo build -p strip-ansi-escapes --release" 98- name : "Install cargo-nextest from Cargo" 99uses : baptiste0928/cargo-install@v3 100with : 101crate : "cargo-nextest" 102cache-key : "ubuntu22.04" 103- name : "Test" 104shell : bash 105run : "cargo nextest run --all --no-fail-fast" 106- name : "Package" 107shell : bash 108run : "bash ci/deploy.sh" 109- name : "Upload artifact" 110uses : actions/upload-artifact@v4 111with : 112name : "ubuntu22.04" 113path : | 114wezterm-*.deb 115wezterm-*.xz 116retention-days : 5 117 118upload : 119runs-on : ubuntu-latest 120needs : build 121if : github.repository == 'wezterm/wezterm' 122permissions : 123contents : write 124pages : write 125id-token : write 126 127steps : 128- name : "Workaround git permissions issue" 129shell : bash 130run : "git config --global --add safe.directory /__w/wezterm/wezterm" 131- name : "checkout repo" 132uses : actions/checkout@v4 133- name : "Download artifact" 134uses : actions/download-artifact@v4 135with : 136name : "ubuntu22.04" 137- name : "Checksum" 138shell : bash 139run : "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done" 140- name : "Upload to Nightly Release" 141env : 142GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 143shell : bash 144run : "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256" 145- name : "Upload to gemfury" 146env : 147FURY_TOKEN : ${{ secrets.FURY_TOKEN }} 148shell : bash 149run : "for f in wezterm*.deb ; do curl -i -F package=@$f https://$FURY_TOKEN@push.fury.io/wez/ ; done"