fork/wezterm

git clone https://git.julia.blue/fork/wezterm

Wez Furlongci: bump sccache action836a0855f

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