-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (42 loc) · 1.38 KB
/
ci_linux.yaml
File metadata and controls
54 lines (42 loc) · 1.38 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: ci_linux
on:
schedule:
# * is a special character in YAML so you have to quote this string
# The final 1 indicates that we want to run this test on Tuesdays, making
# this a weekly test.
- cron: '30 2 * * 1'
pull_request:
workflow_dispatch:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
rust-version: [stable, 1.75]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup rust
run: rustup default ${{ matrix.rust-version }}
# As new versions of our dependencies come out, they might depend on newer
# versions of the Rust compiler. When that happens, we'll use this step to
# lock down the dependency to a version that is known to be compatible with
# compiler version 1.75.
- name: Patch dependencies
if: ${{ matrix.rust-version == 1.75 }}
run: ./scripts/patch-versions-msrv-1_75.sh
- name: Build default features
run: cargo build --workspace
- name: Test default features
run: cargo test --workspace
- name: Test diagram
run: cargo test --workspace -F=diagram
- name: Build single_threaded_async
run: cargo build --features single_threaded_async
- name: Test single_threaded_async
run: cargo test --features single_threaded_async
- name: Build docs
run: cargo doc --all-features