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