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