-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (29 loc) · 867 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 867 Bytes
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
rust-build-and-test:
name: Build and test (${{ matrix.feature_mode.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
feature_mode:
- name: default
features: ""
- name: allow_multithreading
features: "--features allow_multithreading"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry + build
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --manifest-path iKeySort/Cargo.toml ${{ matrix.feature_mode.features }}
- name: Test
run: cargo test --manifest-path iKeySort/Cargo.toml ${{ matrix.feature_mode.features }}