-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.18 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: Ubuntu build
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
- '*/*'
- 'update_flake_lock_action'
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
features:
- "async-std-executor,channel-async-std,logging-utils"
- "async-std-executor,channel-flume,logging-utils"
- "tokio-executor,channel-tokio,logging-utils"
- "tokio-executor,channel-flume,logging-utils"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
name: Enable Rust Caching
- name: Format
run: |
cargo fmt -- --check
- name: Build
run: |
cargo build --all-targets --workspace --features "${{ matrix.features }}" --release
- name: Test
run: |
cargo test --release --all-targets --workspace --features "${{ matrix.features }}"
- name: Lint
run: |
cargo clippy --workspace --all-targets --features "${{ matrix.features }}" --bins --tests --examples -- -D warnings