fork/wezterm

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

Wez Furlongci: bump sccache action836a0855f

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