-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (46 loc) · 1.15 KB
/
build.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
name: Check and Test
on:
push:
branches: ["**"]
tags-ignore: ["**"]
paths-ignore:
- "**.md"
- LICENSE
- .github/FUNDING.yml
- .gitignore
pull_request:
paths-ignore:
- "**.md"
- "**/LICENSE"
- .github/FUNDING.yml
- .editorconfig
- .gitignore
jobs:
build:
name: ${{ matrix.target.name }} (${{ matrix.rust }})
runs-on: ${{ matrix.target.os }}
strategy:
matrix:
rust: [1.77.0, stable, nightly]
target:
- name: Linux
os: ubuntu-latest
- name: macOS
os: macos-latest
# - name: Windows
# os: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Cache cargo output
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --features=amalgation
- name: Check no_std
run: cargo check --no-default-features --features=amalgation
- name: Check and Run tests
run: cargo test --features amalgation