fork/wezterm

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

Wez Furlongci: bump sccache action836a0855f

termwiz-0.23.0
4.3 KiB142 linesraw
1name: ubuntu24.04_continuous
2
3on:
4  schedule:
5    - cron: "10 3 * * *"
6  push:
7    branches:
8      - main
9    paths:
10      - "**/*.rs"
11      - "**/Cargo.lock"
12      - "**/Cargo.toml"
13      - ".github/workflows/gen_ubuntu24.04_continuous.yml"
14      - "assets/fonts/**/*"
15      - "assets/icon/*"
16      - "assets/open-wezterm-here"
17      - "assets/shell-completion/**/*"
18      - "assets/shell-integration/**/*"
19      - "assets/wezterm-nautilus.py"
20      - "assets/wezterm.appdata.xml"
21      - "assets/wezterm.desktop"
22      - "ci/deploy.sh"
23      - "ci/tag-name.sh"
24      - "get-deps"
25      - "termwiz/data/wezterm.terminfo"
26
27jobs:
28  build:
29    runs-on: "ubuntu-latest"
30    container: "ubuntu:24.04"
31    env:
32      BUILD_REASON: "Schedule"
33      CARGO_INCREMENTAL: "0"
34      SCCACHE_GHA_ENABLED: "true"
35      RUSTC_WRAPPER: "sccache"
36
37    steps:
38      - name: "set APT to non-interactive"
39        shell: bash
40        run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
41      - name: "Update APT"
42        shell: bash
43        run: "apt update"
44      - name: "Install git"
45        shell: bash
46        run: "apt-get install -y git"
47      - name: "Install curl"
48        shell: bash
49        run: "apt-get install -y curl"
50      - name: "Update APT"
51        shell: bash
52        run: "apt update"
53      - name: "Ensure /run/sshd exists"
54        shell: bash
55        run: "mkdir -p /run/sshd"
56      - name: "Install openssh-server"
57        shell: bash
58        run: "apt-get install -y openssh-server"
59      - name: "Workaround git permissions issue"
60        shell: bash
61        run: "git config --global --add safe.directory /__w/wezterm/wezterm"
62      - name: "checkout repo"
63        uses: actions/checkout@v4
64        with:
65          submodules: "recursive"
66      - name: "Install Rust"
67        uses: dtolnay/rust-toolchain@stable
68      - name: "Compile with sccache"
69        uses: mozilla-actions/sccache-action@v0.0.7
70      - name: "Cache Rust Dependencies"
71        uses: actions/cache@v4
72        id: cache-cargo-vendor
73        with:
74          path: |
75            vendor
76            .cargo/config
77          key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
78      - name: "Vendor dependecies"
79        if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
80        shell: bash
81        run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
82      - name: "Install System Deps"
83        shell: bash
84        run: "env CI=yes PATH=$PATH ./get-deps"
85      - name: "Build wezterm (Release mode)"
86        shell: bash
87        run: "cargo build -p wezterm --release"
88      - name: "Build wezterm-gui (Release mode)"
89        shell: bash
90        run: "cargo build -p wezterm-gui --release"
91      - name: "Build wezterm-mux-server (Release mode)"
92        shell: bash
93        run: "cargo build -p wezterm-mux-server --release"
94      - name: "Build strip-ansi-escapes (Release mode)"
95        shell: bash
96        run: "cargo build -p strip-ansi-escapes --release"
97      - name: "Install cargo-nextest from Cargo"
98        uses: baptiste0928/cargo-install@v3
99        with:
100          crate: "cargo-nextest"
101          cache-key: "ubuntu24.04"
102      - name: "Test"
103        shell: bash
104        run: "cargo nextest run --all --no-fail-fast"
105      - name: "Package"
106        shell: bash
107        run: "bash ci/deploy.sh"
108      - name: "Upload artifact"
109        uses: actions/upload-artifact@v4
110        with:
111          name: "ubuntu24.04"
112          path: |
113            wezterm-*.deb
114            wezterm-*.xz
115          retention-days: 5
116
117  upload:
118    runs-on: ubuntu-latest
119    needs: build
120    permissions:
121      contents: write
122      pages: write
123      id-token: write
124
125    steps:
126      - name: "Workaround git permissions issue"
127        shell: bash
128        run: "git config --global --add safe.directory /__w/wezterm/wezterm"
129      - name: "checkout repo"
130        uses: actions/checkout@v4
131      - name: "Download artifact"
132        uses: actions/download-artifact@v4
133        with:
134          name: "ubuntu24.04"
135      - name: "Checksum"
136        shell: bash
137        run: "for f in wezterm-*.deb wezterm-*.xz ; do sha256sum $f > $f.sha256 ; done"
138      - name: "Upload to Nightly Release"
139        env:
140          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141        shell: bash
142        run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *.sha256"