fork/wezterm
git clone https://git.julia.blue/fork/wezterm
7d0bff069
termwiz-0.23.1
1name : windows_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_windows_continuous.yml" 15- "assets/fonts/**/*" 16- "assets/icon/*" 17- "assets/windows/**/*" 18- "ci/deploy.sh" 19- "ci/windows-installer.iss" 20 21jobs : 22build : 23runs-on : "windows-latest" 24 25env : 26BUILD_REASON : "Schedule" 27CARGO_INCREMENTAL : "0" 28SCCACHE_GHA_ENABLED : "true" 29RUSTC_WRAPPER : "sccache" 30RUSTUP_WINDOWS_PATH_ADD_BIN : "1" 31 32steps : 33- name : "checkout repo" 34uses : actions/checkout@v4 35with : 36submodules : "recursive" 37- name : "Install Rust" 38uses : dtolnay/rust-toolchain@stable 39with : 40target : "x86_64-pc-windows-msvc" 41- name : "Compile with sccache" 42uses : mozilla-actions/sccache-action@v0.0.7 43- name : "Cache Rust Dependencies" 44uses : actions/cache@v4 45id : cache-cargo-vendor 46with : 47path : | 48vendor 49.cargo/config 50key : "cargo-deps-${{ hashFiles('**/Cargo.lock') }}" 51- name : "Vendor dependecies" 52if : steps.cache-cargo-vendor.outputs.cache-hit != 'true' 53shell : bash 54run : "cargo vendor --locked --versioned-dirs >> .cargo/config" 55- name : "Build wezterm (Release mode)" 56shell : cmd 57run : | 58PATH C:\Strawberry\perl\bin;%PATH% 59cargo build -p wezterm --release 60- name : "Build wezterm-gui (Release mode)" 61shell : cmd 62run : | 63PATH C:\Strawberry\perl\bin;%PATH% 64cargo build -p wezterm-gui --release 65- name : "Build wezterm-mux-server (Release mode)" 66shell : cmd 67run : | 68PATH C:\Strawberry\perl\bin;%PATH% 69cargo build -p wezterm-mux-server --release 70- name : "Build strip-ansi-escapes (Release mode)" 71shell : cmd 72run : | 73PATH C:\Strawberry\perl\bin;%PATH% 74cargo build -p strip-ansi-escapes --release 75- name : "Install cargo-nextest from Cargo" 76uses : baptiste0928/cargo-install@v3 77with : 78crate : "cargo-nextest" 79cache-key : "windows" 80- name : "Test" 81shell : cmd 82run : | 83PATH C:\Strawberry\perl\bin;%PATH% 84cargo nextest run --all --no-fail-fast 85- name : "Package" 86shell : bash 87run : "bash ci/deploy.sh" 88- name : "Upload artifact" 89uses : actions/upload-artifact@v4 90with : 91name : "windows" 92path : | 93WezTerm-*.zip 94WezTerm-*.exe 95retention-days : 5 96 97upload : 98runs-on : ubuntu-latest 99needs : build 100if : github.repository == 'wezterm/wezterm' 101permissions : 102contents : write 103pages : write 104id-token : write 105 106steps : 107- name : "checkout repo" 108uses : actions/checkout@v4 109- name : "Download artifact" 110uses : actions/download-artifact@v4 111with : 112name : "windows" 113- name : "Checksum" 114shell : bash 115run : "for f in WezTerm-*.zip WezTerm-*.exe ; do sha256sum $f > $f.sha256 ; done" 116- name : "Upload to Nightly Release" 117env : 118GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 119shell : bash 120run : "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip WezTerm-*.exe *.sha256"