-
Notifications
You must be signed in to change notification settings - Fork 67
56 lines (54 loc) · 1.51 KB
/
ci.yml
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
clang: [["14.0", "clang_14_0"]]
rust: ["1.60.0"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# LLVM and Clang
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: ${{ matrix.clang[0] }}
directory: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}
# Rust
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
# Test
- name: Cargo Test (Dynamic)
run: cargo test --verbose --features ${{ matrix.clang[1] }} -- --nocapture
- name: Cargo Test (Runtime)
run: cargo test --verbose --features "${{ matrix.clang[1] }} runtime" -- --nocapture
test-bindgen:
name: Test (bindgen)
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# LLVM and Clang
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: 14
directory: ${{ runner.temp }}/llvm
# Rust
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
# Test
- name: Cargo Run (bindgen-test)
run: cargo run --manifest-path bindgen-test/Cargo.toml