-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (28 loc) · 1.03 KB
/
check.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
name: check
on:
pull_request:
push:
branches:
- main
jobs:
Check:
runs-on: ubuntu-latest
strategy:
matrix:
rt: ['tokio', 'async-std']
x: ['websocket', '']
toolchain: ['stable', 'nightly']
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true
- name: Check ohkami's buildability
run: cargo check --features rt_${{ matrix.rt }}${{ matrix.x == '' && '' || ',' }}${{ matrix.x }}${{ matrix.toolchain == 'nightly' && ',nightly' || '' }},DEBUG
- name: Check ohkami's buildability without default feature (utils)
run: cargo check --no-default-features --features rt_${{ matrix.rt }}${{ matrix.x == '' && '' || ',' }}${{ matrix.x }}${{ matrix.toolchain == 'nightly' && ',nightly' || '' }},DEBUG
- name: Check examples' buildablity
working-directory: examples
run: cargo check