fork/wezterm

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

Wez Furlongci: bump sccache action836a0855f

termwiz-0.23.0
2.5 KiB90 linesraw
1name: windows
2
3on:
4  pull_request:
5    branches:
6      - main
7    paths:
8      - "**/*.rs"
9      - "**/Cargo.lock"
10      - "**/Cargo.toml"
11      - ".github/workflows/gen_windows.yml"
12      - "assets/fonts/**/*"
13      - "assets/icon/*"
14      - "assets/windows/**/*"
15      - "ci/deploy.sh"
16      - "ci/windows-installer.iss"
17
18jobs:
19  build:
20    runs-on: "windows-latest"
21    
22    env:
23      CARGO_INCREMENTAL: "0"
24      SCCACHE_GHA_ENABLED: "true"
25      RUSTC_WRAPPER: "sccache"
26      RUSTUP_WINDOWS_PATH_ADD_BIN: "1"
27
28    steps:
29      - name: "checkout repo"
30        uses: actions/checkout@v4
31        with:
32          submodules: "recursive"
33      - name: "Install Rust"
34        uses: dtolnay/rust-toolchain@stable
35        with:
36          target: "x86_64-pc-windows-msvc"
37      - name: "Compile with sccache"
38        uses: mozilla-actions/sccache-action@v0.0.7
39      - name: "Cache Rust Dependencies"
40        uses: actions/cache@v4
41        id: cache-cargo-vendor
42        with:
43          path: |
44            vendor
45            .cargo/config
46          key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
47      - name: "Vendor dependecies"
48        if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
49        shell: bash
50        run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
51      - name: "Build wezterm (Release mode)"
52        shell: cmd
53        run: |
54          PATH C:\Strawberry\perl\bin;%PATH%
55          cargo build -p wezterm --release
56      - name: "Build wezterm-gui (Release mode)"
57        shell: cmd
58        run: |
59          PATH C:\Strawberry\perl\bin;%PATH%
60          cargo build -p wezterm-gui --release
61      - name: "Build wezterm-mux-server (Release mode)"
62        shell: cmd
63        run: |
64          PATH C:\Strawberry\perl\bin;%PATH%
65          cargo build -p wezterm-mux-server --release
66      - name: "Build strip-ansi-escapes (Release mode)"
67        shell: cmd
68        run: |
69          PATH C:\Strawberry\perl\bin;%PATH%
70          cargo build -p strip-ansi-escapes --release
71      - name: "Install cargo-nextest from Cargo"
72        uses: baptiste0928/cargo-install@v3
73        with:
74          crate: "cargo-nextest"
75          cache-key: "windows"
76      - name: "Test"
77        shell: cmd
78        run: |
79          PATH C:\Strawberry\perl\bin;%PATH%
80          cargo nextest run --all --no-fail-fast
81      - name: "Package"
82        shell: bash
83        run: "bash ci/deploy.sh"
84      - name: "Upload artifact"
85        uses: actions/upload-artifact@v4
86        with:
87          name: "windows"
88          path: |
89            WezTerm-*.zip
90            WezTerm-*.exe