fork/wezterm

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

Wez Furlongci: trigger builds when .cargo/config.toml changes7d0bff069

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