fork/wezterm

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

Wez Furlongci: cache api was biffed3463d5d81

vtparse-0.7.0
3.8 KiB128 linesraw
1name: ubuntu20.04
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_ubuntu20.04.yml"
13      - "assets/fonts/**/*"
14      - "assets/icon/*"
15      - "assets/open-wezterm-here"
16      - "assets/shell-completion/**/*"
17      - "assets/shell-integration/**/*"
18      - "assets/wezterm-nautilus.py"
19      - "assets/wezterm.appdata.xml"
20      - "assets/wezterm.desktop"
21      - "ci/appimage.sh"
22      - "ci/appstreamcli"
23      - "ci/deploy.sh"
24      - "ci/source-archive.sh"
25      - "ci/tag-name.sh"
26      - "get-deps"
27      - "termwiz/data/wezterm.terminfo"
28
29jobs:
30  build:
31    runs-on: "ubuntu-latest"
32    container:
33      image: "ubuntu:20.04"
34      options: --privileged
35    env:
36      CARGO_INCREMENTAL: "0"
37      SCCACHE_GHA_ENABLED: "true"
38      RUSTC_WRAPPER: "sccache"
39
40    steps:
41      - name: "set APT to non-interactive"
42        shell: bash
43        run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
44      - name: "Update APT"
45        shell: bash
46        run: "apt update"
47      - name: "Install git"
48        shell: bash
49        run: "apt-get install -y git"
50      - name: "Install curl"
51        shell: bash
52        run: "apt-get install -y curl"
53      - name: "Update APT"
54        shell: bash
55        run: "apt update"
56      - name: "Ensure /run/sshd exists"
57        shell: bash
58        run: "mkdir -p /run/sshd"
59      - name: "Install openssh-server"
60        shell: bash
61        run: "apt-get install -y openssh-server"
62      - name: "Workaround git permissions issue"
63        shell: bash
64        run: "git config --global --add safe.directory /__w/wezterm/wezterm"
65      - name: "checkout repo"
66        uses: actions/checkout@v4
67        with:
68          submodules: "recursive"
69      - name: "Install Rust"
70        uses: dtolnay/rust-toolchain@stable
71      - name: "Compile with sccache"
72        uses: mozilla-actions/sccache-action@v0.0.9
73      - name: "Cache Rust Dependencies"
74        uses: actions/cache@v4
75        id: cache-cargo-vendor
76        with:
77          path: |
78            vendor
79            .cargo/config
80          key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
81      - name: "Vendor dependecies"
82        if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
83        shell: bash
84        run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
85      - name: "Install System Deps"
86        shell: bash
87        run: "env CI=yes PATH=$PATH ./get-deps"
88      - name: "Build wezterm (Release mode)"
89        shell: bash
90        run: "cargo build -p wezterm --release"
91      - name: "Build wezterm-gui (Release mode)"
92        shell: bash
93        run: "cargo build -p wezterm-gui --release"
94      - name: "Build wezterm-mux-server (Release mode)"
95        shell: bash
96        run: "cargo build -p wezterm-mux-server --release"
97      - name: "Build strip-ansi-escapes (Release mode)"
98        shell: bash
99        run: "cargo build -p strip-ansi-escapes --release"
100      - name: "Install cargo-nextest from Cargo"
101        uses: baptiste0928/cargo-install@v3
102        with:
103          crate: "cargo-nextest"
104          cache-key: "ubuntu20.04"
105      - name: "Test"
106        shell: bash
107        run: "cargo nextest run --all --no-fail-fast"
108      - name: "Package"
109        shell: bash
110        run: "bash ci/deploy.sh"
111      - name: "Install libfuse2"
112        shell: bash
113        run: "apt-get install -y libfuse2"
114      - name: "Source Tarball"
115        shell: bash
116        run: "bash ci/source-archive.sh"
117      - name: "Build AppImage"
118        shell: bash
119        run: "bash ci/appimage.sh"
120      - name: "Upload artifact"
121        uses: actions/upload-artifact@v4
122        with:
123          name: "ubuntu20.04"
124          path: |
125            wezterm-*.deb
126            wezterm-*.xz
127            *src.tar.gz
128            *.AppImage