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