fork/wezterm

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

Wez Furlongci: bump sccache action836a0855f

termwiz-0.23.0
3.4 KiB111 linesraw
1name: ubuntu22.04
2
3on:
4  pull_request:
5    branches:
6      - main
7    paths:
8      - "**/*.rs"
9      - "**/Cargo.lock"
10      - "**/Cargo.toml"
11      - ".github/workflows/gen_ubuntu22.04.yml"
12      - "assets/fonts/**/*"
13      - "assets/icon/*"
14      - "assets/open-wezterm-here"
15      - "assets/shell-completion/**/*"
16      - "assets/shell-integration/**/*"
17      - "assets/wezterm-nautilus.py"
18      - "assets/wezterm.appdata.xml"
19      - "assets/wezterm.desktop"
20      - "ci/deploy.sh"
21      - "ci/tag-name.sh"
22      - "get-deps"
23      - "termwiz/data/wezterm.terminfo"
24
25jobs:
26  build:
27    runs-on: "ubuntu-latest"
28    container: "ubuntu:22.04"
29    env:
30      CARGO_INCREMENTAL: "0"
31      SCCACHE_GHA_ENABLED: "true"
32      RUSTC_WRAPPER: "sccache"
33
34    steps:
35      - name: "set APT to non-interactive"
36        shell: bash
37        run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
38      - name: "Update APT"
39        shell: bash
40        run: "apt update"
41      - name: "Install git"
42        shell: bash
43        run: "apt-get install -y git"
44      - name: "Install curl"
45        shell: bash
46        run: "apt-get install -y curl"
47      - name: "Update APT"
48        shell: bash
49        run: "apt update"
50      - name: "Ensure /run/sshd exists"
51        shell: bash
52        run: "mkdir -p /run/sshd"
53      - name: "Install openssh-server"
54        shell: bash
55        run: "apt-get install -y openssh-server"
56      - name: "Workaround git permissions issue"
57        shell: bash
58        run: "git config --global --add safe.directory /__w/wezterm/wezterm"
59      - name: "checkout repo"
60        uses: actions/checkout@v4
61        with:
62          submodules: "recursive"
63      - name: "Install Rust"
64        uses: dtolnay/rust-toolchain@stable
65      - name: "Compile with sccache"
66        uses: mozilla-actions/sccache-action@v0.0.7
67      - name: "Cache Rust Dependencies"
68        uses: actions/cache@v4
69        id: cache-cargo-vendor
70        with:
71          path: |
72            vendor
73            .cargo/config
74          key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
75      - name: "Vendor dependecies"
76        if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
77        shell: bash
78        run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
79      - name: "Install System Deps"
80        shell: bash
81        run: "env CI=yes PATH=$PATH ./get-deps"
82      - name: "Build wezterm (Release mode)"
83        shell: bash
84        run: "cargo build -p wezterm --release"
85      - name: "Build wezterm-gui (Release mode)"
86        shell: bash
87        run: "cargo build -p wezterm-gui --release"
88      - name: "Build wezterm-mux-server (Release mode)"
89        shell: bash
90        run: "cargo build -p wezterm-mux-server --release"
91      - name: "Build strip-ansi-escapes (Release mode)"
92        shell: bash
93        run: "cargo build -p strip-ansi-escapes --release"
94      - name: "Install cargo-nextest from Cargo"
95        uses: baptiste0928/cargo-install@v3
96        with:
97          crate: "cargo-nextest"
98          cache-key: "ubuntu22.04"
99      - name: "Test"
100        shell: bash
101        run: "cargo nextest run --all --no-fail-fast"
102      - name: "Package"
103        shell: bash
104        run: "bash ci/deploy.sh"
105      - name: "Upload artifact"
106        uses: actions/upload-artifact@v4
107        with:
108          name: "ubuntu22.04"
109          path: |
110            wezterm-*.deb
111            wezterm-*.xz