fork/wezterm

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

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

termiz-0.23.2
3.2 KiB107 linesraw
1name: fedora41
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_fedora41.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: "fedora:41"
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: "Install git"
40        shell: bash
41        run: "yum install -y git"
42      - name: "Install curl"
43        shell: bash
44        run: "yum install -y curl"
45      - name: "Ensure /run/sshd exists"
46        shell: bash
47        run: "mkdir -p /run/sshd"
48      - name: "Install openssh-server"
49        shell: bash
50        run: "yum install -y openssh-server"
51      - name: "Workaround git permissions issue"
52        shell: bash
53        run: "git config --global --add safe.directory /__w/wezterm/wezterm"
54      - name: "checkout repo"
55        uses: actions/checkout@v4
56        with:
57          submodules: "recursive"
58      - name: "Install Rust"
59        uses: dtolnay/rust-toolchain@stable
60      - name: "Compile with sccache"
61        uses: mozilla-actions/sccache-action@v0.0.7
62      - name: "Cache Rust Dependencies"
63        uses: actions/cache@v4
64        id: cache-cargo-vendor
65        with:
66          path: |
67            vendor
68            .cargo/config
69          key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
70      - name: "Vendor dependecies"
71        if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
72        shell: bash
73        run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
74      - name: "Install System Deps"
75        shell: bash
76        run: "env CI=yes PATH=$PATH ./get-deps"
77      - name: "Build wezterm (Release mode)"
78        shell: bash
79        run: "cargo build -p wezterm --release"
80      - name: "Build wezterm-gui (Release mode)"
81        shell: bash
82        run: "cargo build -p wezterm-gui --release"
83      - name: "Build wezterm-mux-server (Release mode)"
84        shell: bash
85        run: "cargo build -p wezterm-mux-server --release"
86      - name: "Build strip-ansi-escapes (Release mode)"
87        shell: bash
88        run: "cargo build -p strip-ansi-escapes --release"
89      - name: "Install cargo-nextest from Cargo"
90        uses: baptiste0928/cargo-install@v3
91        with:
92          crate: "cargo-nextest"
93          cache-key: "fedora41"
94      - name: "Test"
95        shell: bash
96        run: "cargo nextest run --all --no-fail-fast"
97      - name: "Package"
98        shell: bash
99        run: "bash ci/deploy.sh"
100      - name: "Move RPM"
101        shell: bash
102        run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
103      - name: "Upload artifact"
104        uses: actions/upload-artifact@v4
105        with:
106          name: "fedora41"
107          path: "wezterm-*.rpm"