-
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (40 loc) · 1.18 KB
/
ci.yml
File metadata and controls
53 lines (40 loc) · 1.18 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
name: Rust CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
build-test:
name: Run test and build
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
- os: macos-14
target: aarch64-apple-darwin
- os: macos-15
target: aarch64-apple-darwin
- os: macos-15-intel
target: x86_64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Rust
uses: dtolnay/rust-toolchain@aad518f59d88bae90133242f9ddac7f8bbc5dddf #v1.94.1
with:
components: rustfmt, clippy
- name: Check fmt and linting
run: make check
- name: Run tests
run: cargo test --target ${{ matrix.target }} --verbose
- name: Build
run: cargo build --target ${{ matrix.target }} --verbose