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