-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 962 Bytes
/
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
name: CI
on:
push:
branches: ["main"]
paths:
- benches/**
- examples/**
- src/**
pull_request:
branches: ["main"]
paths:
- benches/**
- examples/**
- src/**
env:
CARGO_TERM_COLOR: always
jobs:
mutli-threaded:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Test
run: RUST_MIN_STACK=8388608 cargo test --verbose
- name: Benchmark
run: cargo bench --verbose
single-threaded:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --no-default-features --verbose
- name: Test
run: RUST_MIN_STACK=8388608 cargo test --no-default-features --verbose
- name: Benchmark
run: cargo bench --no-default-features --verbose
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}