-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 1.55 KB
/
continuous_integration.yaml
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
67
name: Continuous Integration
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Hasty
uses: actions/checkout@v4
with:
submodules: recursive
- name: Get latest CMake and ninja
uses: lukka/get-cmake@latest
- name: Update Rust
run: |
rustup update
rustup component add rustfmt
rustup component add clippy
- name: Install OpenBLAS
run: |
sudo apt-get install libopenblas-dev
- name: Compile and Test (No Features) (Debug)
run: |
cargo build --no-default-features
cargo test --no-default-features
- name: Compile and Test (BLAS) (Debug)
run: |
cargo build --features "blas"
cargo test --features "blas"
- name: Compile and Test (No Features) (Release)
run: |
cargo build --no-default-features --release
cargo test --no-default-features --release
- name: Compile and Test (BLAS) (Release)
run: |
cargo build --features "blas" --release
cargo test --features "blas" --release
- name: Dry Release
run: |
cargo publish --dry-run
- name: Benchmark
run: |
cargo bench --features "blas"
- name: Store Benchmark Results
uses: actions/upload-artifact@v2
with:
name: benchmark-results
path: target/criterion