-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (61 loc) · 1.74 KB
/
with-bindings.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
name: Run tests with TKET1 bindings
on:
push:
branches:
- main
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTFLAGS: "--cfg=ci_run"
CONAN_PROFILE: "./.github/conan_profile"
jobs:
benches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Setup Conan
uses: ./.github/actions/setup-conan
with:
conan-profile: ${{ env.CONAN_PROFILE }}
gcc-version: 11
- uses: Swatinem/rust-cache@v2
with:
prefix-key: v0-conan
- name: Build benchmarks with all features
run: cargo bench --verbose --no-run --all-features
tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
#- rust: 1.70.0 # Update once MSRV != stable
- rust: stable
cache: true
- rust: beta
cache: true
- rust: nightly
cache: true
steps:
- uses: actions/checkout@v3
- id: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Configure default rust toolchain
run: rustup override set ${{steps.toolchain.outputs.name}}
- name: Setup Conan
uses: ./.github/actions/setup-conan
with:
conan-profile: ./.github/conan_profile
gcc-version: 11
- uses: Swatinem/rust-cache@v2
if: ${{ matrix.cache }}
with:
prefix-key: v0-rust-${{ matrix.rust }}-conan
- name: Build with all features
run: cargo build --verbose --all-features
- name: Tests with all features
run: cargo test --verbose --all-features