fork/wezterm
git clone https://git.julia.blue/fork/wezterm
836a0855f
termwiz-0.23.0
1name : macos 2 3on : 4pull_request : 5branches : 6- main 7paths : 8- "**/*.rs" 9- "**/Cargo.lock" 10- "**/Cargo.toml" 11- ".github/workflows/gen_macos.yml" 12- "assets/fonts/**/*" 13- "assets/icon/*" 14- "assets/macos/**/*" 15- "ci/deploy.sh" 16- "ci/macos-entitlement.plist" 17- "ci/tag-name.sh" 18- "get-deps" 19 20jobs : 21build : 22runs-on : "macos-latest" 23 24env : 25CARGO_INCREMENTAL : "0" 26SCCACHE_GHA_ENABLED : "true" 27RUSTC_WRAPPER : "sccache" 28MACOSX_DEPLOYMENT_TARGET : "10.12" 29 30steps : 31- name : "checkout repo" 32uses : actions/checkout@v4 33with : 34submodules : "recursive" 35- name : "Install Rust (ARM)" 36shell : bash 37run : "rustup target add aarch64-apple-darwin" 38- name : "Install Rust (Intel)" 39shell : bash 40run : "rustup target add x86_64-apple-darwin" 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 : "Install System Deps" 56shell : bash 57run : "env CI=yes PATH=$PATH ./get-deps" 58- name : "Build wezterm (Release mode Intel)" 59shell : bash 60run : "cargo build --target x86_64-apple-darwin -p wezterm --release" 61- name : "Build wezterm (Release mode ARM)" 62shell : bash 63run : "cargo build --target aarch64-apple-darwin -p wezterm --release" 64- name : "Build wezterm-gui (Release mode Intel)" 65shell : bash 66run : "cargo build --target x86_64-apple-darwin -p wezterm-gui --release" 67- name : "Build wezterm-gui (Release mode ARM)" 68shell : bash 69run : "cargo build --target aarch64-apple-darwin -p wezterm-gui --release" 70- name : "Build wezterm-mux-server (Release mode Intel)" 71shell : bash 72run : "cargo build --target x86_64-apple-darwin -p wezterm-mux-server --release" 73- name : "Build wezterm-mux-server (Release mode ARM)" 74shell : bash 75run : "cargo build --target aarch64-apple-darwin -p wezterm-mux-server --release" 76- name : "Build strip-ansi-escapes (Release mode Intel)" 77shell : bash 78run : "cargo build --target x86_64-apple-darwin -p strip-ansi-escapes --release" 79- name : "Build strip-ansi-escapes (Release mode ARM)" 80shell : bash 81run : "cargo build --target aarch64-apple-darwin -p strip-ansi-escapes --release" 82- name : "Install cargo-nextest from Cargo" 83uses : baptiste0928/cargo-install@v3 84with : 85crate : "cargo-nextest" 86cache-key : "macos" 87- name : "Test" 88shell : bash 89run : "cargo nextest run --all --no-fail-fast --target=x86_64-apple-darwin" 90- name : "Package" 91shell : bash 92run : "bash ci/deploy.sh" 93- name : "Upload artifact" 94uses : actions/upload-artifact@v4 95with : 96name : "macos" 97path : "WezTerm-*.zip"