fork/wezterm

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

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

termiz-0.23.3
3.4 KiB110 linesraw
1name: centos9
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_centos9.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/deploy.sh"
22      - "ci/tag-name.sh"
23      - "get-deps"
24      - "termwiz/data/wezterm.terminfo"
25
26jobs:
27  build:
28    runs-on: "ubuntu-latest"
29    container: "quay.io/centos/centos:stream9"
30    env:
31      CARGO_INCREMENTAL: "0"
32      SCCACHE_GHA_ENABLED: "true"
33      RUSTC_WRAPPER: "sccache"
34
35    steps:
36      - name: "Install config manager"
37        shell: bash
38        run: "dnf install -y 'dnf-command(config-manager)'"
39      - name: "Enable CRB repo for X bits"
40        shell: bash
41        run: "dnf config-manager --set-enabled crb"
42      - name: "Install git"
43        shell: bash
44        run: "yum install -y git"
45      - name: "Install curl-minimal"
46        shell: bash
47        run: "yum install -y curl-minimal"
48      - name: "Ensure /run/sshd exists"
49        shell: bash
50        run: "mkdir -p /run/sshd"
51      - name: "Install openssh-server"
52        shell: bash
53        run: "yum install -y openssh-server"
54      - name: "Workaround git permissions issue"
55        shell: bash
56        run: "git config --global --add safe.directory /__w/wezterm/wezterm"
57      - name: "checkout repo"
58        uses: actions/checkout@v4
59        with:
60          submodules: "recursive"
61      - name: "Install Rust"
62        uses: dtolnay/rust-toolchain@stable
63      - name: "Compile with sccache"
64        uses: mozilla-actions/sccache-action@v0.0.7
65      - name: "Cache Rust Dependencies"
66        uses: actions/cache@v4
67        id: cache-cargo-vendor
68        with:
69          path: |
70            vendor
71            .cargo/config
72          key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
73      - name: "Vendor dependecies"
74        if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
75        shell: bash
76        run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
77      - name: "Install System Deps"
78        shell: bash
79        run: "env CI=yes PATH=$PATH ./get-deps"
80      - name: "Build wezterm (Release mode)"
81        shell: bash
82        run: "cargo build -p wezterm --release"
83      - name: "Build wezterm-gui (Release mode)"
84        shell: bash
85        run: "cargo build -p wezterm-gui --release"
86      - name: "Build wezterm-mux-server (Release mode)"
87        shell: bash
88        run: "cargo build -p wezterm-mux-server --release"
89      - name: "Build strip-ansi-escapes (Release mode)"
90        shell: bash
91        run: "cargo build -p strip-ansi-escapes --release"
92      - name: "Install cargo-nextest from Cargo"
93        uses: baptiste0928/cargo-install@v3
94        with:
95          crate: "cargo-nextest"
96          cache-key: "centos9"
97      - name: "Test"
98        shell: bash
99        run: "cargo nextest run --all --no-fail-fast"
100      - name: "Package"
101        shell: bash
102        run: "bash ci/deploy.sh"
103      - name: "Move RPM"
104        shell: bash
105        run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
106      - name: "Upload artifact"
107        uses: actions/upload-artifact@v4
108        with:
109          name: "centos9"
110          path: "wezterm-*.rpm"