fork/wezterm
git clone https://git.julia.blue/fork/wezterm
3463d5d81
vtparse-0.7.0
1name : macos 2 3on : 4pull_request : 5branches : 6- main 7paths : 8- "**/*.rs" 9- "**/Cargo.lock" 10- "**/Cargo.toml" 11- ".cargo/config.toml" 12- ".github/workflows/gen_macos.yml" 13- "assets/fonts/**/*" 14- "assets/icon/*" 15- "assets/macos/**/*" 16- "ci/deploy.sh" 17- "ci/macos-entitlement.plist" 18- "ci/tag-name.sh" 19- "get-deps" 20 21jobs : 22build : 23runs-on : "macos-latest" 24 25env : 26CARGO_INCREMENTAL : "0" 27SCCACHE_GHA_ENABLED : "true" 28RUSTC_WRAPPER : "sccache" 29MACOSX_DEPLOYMENT_TARGET : "10.12" 30 31steps : 32- name : "checkout repo" 33uses : actions/checkout@v4 34with : 35submodules : "recursive" 36- name : "Install Rust (ARM)" 37shell : bash 38run : "rustup target add aarch64-apple-darwin" 39- name : "Install Rust (Intel)" 40shell : bash 41run : "rustup target add x86_64-apple-darwin" 42- name : "Compile with sccache" 43uses : mozilla-actions/sccache-action@v0.0.9 44- name : "Cache Rust Dependencies" 45uses : actions/cache@v4 46id : cache-cargo-vendor 47with : 48path : | 49vendor 50.cargo/config 51key : "cargo-deps-${{ hashFiles('**/Cargo.lock') }}" 52- name : "Vendor dependecies" 53if : steps.cache-cargo-vendor.outputs.cache-hit != 'true' 54shell : bash 55run : "cargo vendor --locked --versioned-dirs >> .cargo/config" 56- name : "Install System Deps" 57shell : bash 58run : "env CI=yes PATH=$PATH ./get-deps" 59- name : "Build wezterm (Release mode Intel)" 60shell : bash 61run : "cargo build --target x86_64-apple-darwin -p wezterm --release" 62- name : "Build wezterm (Release mode ARM)" 63shell : bash 64run : "cargo build --target aarch64-apple-darwin -p wezterm --release" 65- name : "Build wezterm-gui (Release mode Intel)" 66shell : bash 67run : "cargo build --target x86_64-apple-darwin -p wezterm-gui --release" 68- name : "Build wezterm-gui (Release mode ARM)" 69shell : bash 70run : "cargo build --target aarch64-apple-darwin -p wezterm-gui --release" 71- name : "Build wezterm-mux-server (Release mode Intel)" 72shell : bash 73run : "cargo build --target x86_64-apple-darwin -p wezterm-mux-server --release" 74- name : "Build wezterm-mux-server (Release mode ARM)" 75shell : bash 76run : "cargo build --target aarch64-apple-darwin -p wezterm-mux-server --release" 77- name : "Build strip-ansi-escapes (Release mode Intel)" 78shell : bash 79run : "cargo build --target x86_64-apple-darwin -p strip-ansi-escapes --release" 80- name : "Build strip-ansi-escapes (Release mode ARM)" 81shell : bash 82run : "cargo build --target aarch64-apple-darwin -p strip-ansi-escapes --release" 83- name : "Install cargo-nextest from Cargo" 84uses : baptiste0928/cargo-install@v3 85with : 86crate : "cargo-nextest" 87cache-key : "macos" 88- name : "Test" 89shell : bash 90run : "cargo nextest run --all --no-fail-fast --target=x86_64-apple-darwin" 91- name : "Package" 92shell : bash 93run : "bash ci/deploy.sh" 94- name : "Upload artifact" 95uses : actions/upload-artifact@v4 96with : 97name : "macos" 98path : "WezTerm-*.zip"