forked from fallenwood/kazeterm
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 1.94 KB
/
pr.yaml
File metadata and controls
72 lines (60 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: PR
on:
pull_request:
branches: [ master ]
jobs:
build-debug:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, windows-11-arm, ubuntu-24.04-arm, macos-latest, macos-26-intel]
steps:
- uses: actions/checkout@v4
- name: Set rust vesrion
run: rustup override set 1.95.0
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: "0.15.2"
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup
if: runner.os == 'Linux'
run: |
sudo apt-get update -y && sudo apt install -y \
clang \
llvm \
libxcb1-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev
- name: Build
if: runner.os == 'Windows'
run: cargo build
- name: Build
if: runner.os != 'Windows'
run: cargo build --workspace
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov --locked
- name: Run coverage (tests included)
if: runner.os == 'Windows' && runner.arch != 'ARM64'
run: |
mkdir -p ./coverage
cargo llvm-cov --workspace --all-features --exclude terminal-kernel-vte --exclude terminal-kernel-ghostty --lcov --output-path coverage/lcov.info
- name: Run coverage (tests included)
if: runner.os != 'Windows'
run: |
mkdir -p ./coverage
cargo llvm-cov --workspace --all-features --lcov --output-path coverage/lcov.info
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
if: runner.os == 'Linux' && runner.arch == 'X64'
with:
name: coverage-lcov
path: coverage/lcov.info