-
Notifications
You must be signed in to change notification settings - Fork 53
67 lines (58 loc) · 1.63 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
57
58
59
60
61
62
63
64
65
66
67
on: [push, pull_request]
name: CI
jobs:
check:
name: Build
strategy:
matrix:
include:
- rust_version: stable
run_tests: true
- rust_version: beta
run_tests: true
- rust_version: nightly
run_tests: true
# Minimal supported rustc version
- rust_version: 1.65.0
run_tests: false
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.rust_version == 'nightly' }}
env:
RUST_LOG: warn
RUST_BACKTRACE: 1
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust_version }}
override: true
- name: Print Rust compiler version
run: rustc --version
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
if: ${{ matrix.run_tests }}
- name: Run cargo build - no_std
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features
- name: Run cargo build - no_std, lfn
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features lfn
- name: Run cargo build - no_std, alloc, lfn, unicode
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features alloc,lfn,unicode