File tree Expand file tree Collapse file tree 2 files changed +45
-53
lines changed Expand file tree Collapse file tree 2 files changed +45
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
pull_request :
3
3
merge_group :
4
4
5
- name : PR Check
5
+ name : CI Check
6
6
7
7
env :
8
8
CARGO_TERM_COLOR : always
9
+ HOST : x86_64-unknown-linux-gnu
10
+ FEATURES : " test docs"
9
11
RUSTFLAGS : " -D warnings"
10
12
11
13
jobs :
23
25
components : clippy
24
26
- uses : Swatinem/rust-cache@v2
25
27
- run : cargo clippy --features docs
28
+ tests :
29
+ if : ${{ github.event_name == 'merge_group' }}
30
+ runs-on : ubuntu-latest
31
+ strategy :
32
+ matrix :
33
+ rust :
34
+ - stable
35
+ - beta
36
+ - nightly
37
+ - 1.51.0 # MSRV
38
+
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+ - uses : dtolnay/rust-toolchain@master
42
+ with :
43
+ toolchain : ${{ matrix.rust }}
44
+ - uses : Swatinem/rust-cache@v2
45
+ - name : Install openblas
46
+ run : sudo apt-get install libopenblas-dev gfortran
47
+ - run : ./scripts/all-tests.sh "$FEATURES" ${{ matrix.rust }}
48
+
49
+ cross_test :
50
+ if : ${{ github.event_name == 'merge_group' }}
51
+ runs-on : ubuntu-latest
52
+ strategy :
53
+ matrix :
54
+ include :
55
+ - rust : stable
56
+ target : powerpc-unknown-linux-gnu
57
+ - rust : stable
58
+ target : i686-unknown-linux-gnu
59
+
60
+ steps :
61
+ - uses : actions/checkout@v4
62
+ - uses : dtolnay/rust-toolchain@master
63
+ with :
64
+ toolchain : ${{ matrix.rust }}
65
+ targets : ${{ matrix.target }}
66
+ - uses : Swatinem/rust-cache@v2
67
+ - name : Install cross
68
+ run : cargo install cross
69
+ - run : ./scripts/cross-tests.sh "docs" ${{ matrix.rust }} ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments