fork/wezterm
git clone https://git.julia.blue/fork/wezterm
836a0855f
termwiz-0.23.0
1name : windows 2 3on : 4pull_request : 5branches : 6- main 7paths : 8- "**/*.rs" 9- "**/Cargo.lock" 10- "**/Cargo.toml" 11- ".github/workflows/gen_windows.yml" 12- "assets/fonts/**/*" 13- "assets/icon/*" 14- "assets/windows/**/*" 15- "ci/deploy.sh" 16- "ci/windows-installer.iss" 17 18jobs : 19build : 20runs-on : "windows-latest" 21 22env : 23CARGO_INCREMENTAL : "0" 24SCCACHE_GHA_ENABLED : "true" 25RUSTC_WRAPPER : "sccache" 26RUSTUP_WINDOWS_PATH_ADD_BIN : "1" 27 28steps : 29- name : "checkout repo" 30uses : actions/checkout@v4 31with : 32submodules : "recursive" 33- name : "Install Rust" 34uses : dtolnay/rust-toolchain@stable 35with : 36target : "x86_64-pc-windows-msvc" 37- name : "Compile with sccache" 38uses : mozilla-actions/sccache-action@v0.0.7 39- name : "Cache Rust Dependencies" 40uses : actions/cache@v4 41id : cache-cargo-vendor 42with : 43path : | 44vendor 45.cargo/config 46key : "cargo-deps-${{ hashFiles('**/Cargo.lock') }}" 47- name : "Vendor dependecies" 48if : steps.cache-cargo-vendor.outputs.cache-hit != 'true' 49shell : bash 50run : "cargo vendor --locked --versioned-dirs >> .cargo/config" 51- name : "Build wezterm (Release mode)" 52shell : cmd 53run : | 54PATH C:\Strawberry\perl\bin;%PATH% 55cargo build -p wezterm --release 56- name : "Build wezterm-gui (Release mode)" 57shell : cmd 58run : | 59PATH C:\Strawberry\perl\bin;%PATH% 60cargo build -p wezterm-gui --release 61- name : "Build wezterm-mux-server (Release mode)" 62shell : cmd 63run : | 64PATH C:\Strawberry\perl\bin;%PATH% 65cargo build -p wezterm-mux-server --release 66- name : "Build strip-ansi-escapes (Release mode)" 67shell : cmd 68run : | 69PATH C:\Strawberry\perl\bin;%PATH% 70cargo build -p strip-ansi-escapes --release 71- name : "Install cargo-nextest from Cargo" 72uses : baptiste0928/cargo-install@v3 73with : 74crate : "cargo-nextest" 75cache-key : "windows" 76- name : "Test" 77shell : cmd 78run : | 79PATH C:\Strawberry\perl\bin;%PATH% 80cargo nextest run --all --no-fail-fast 81- name : "Package" 82shell : bash 83run : "bash ci/deploy.sh" 84- name : "Upload artifact" 85uses : actions/upload-artifact@v4 86with : 87name : "windows" 88path : | 89 WezTerm-*.zip 90 WezTerm-*.exe