Skip to content

Commit d10e87c

Browse files
jturner314bluss
authored andcommitted
Update MSRV to 1.57
1 parent ada4d0c commit d10e87c

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

.github/workflows/ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
pull_request:
5+
branches: [ master ]
6+
7+
name: Continuous integration
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
HOST: x86_64-unknown-linux-gnu
12+
FEATURES: "test docs"
13+
RUSTFLAGS: "-D warnings"
14+
15+
jobs:
16+
tests:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
rust:
21+
- stable
22+
- beta
23+
- nightly
24+
- 1.57.0 # MSRV
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions-rs/toolchain@v1
29+
with:
30+
profile: minimal
31+
toolchain: ${{ matrix.rust }}
32+
override: true
33+
- name: Install openblas
34+
run: sudo apt-get install libopenblas-dev gfortran
35+
- run: ./scripts/all-tests.sh "$FEATURES" ${{ matrix.rust }}
36+
37+
cross_test:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
include:
42+
- rust: stable
43+
target: mips-unknown-linux-gnu
44+
- rust: stable
45+
target: i686-unknown-linux-gnu
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: actions-rs/toolchain@v1
50+
with:
51+
profile: minimal
52+
toolchain: ${{ matrix.rust }}
53+
target: ${{ matrix.target }}
54+
override: true
55+
- name: Cache cargo plugins
56+
uses: actions/cache@v1
57+
with:
58+
path: ~/.cargo/bin/
59+
key: ${{ runner.os }}-cargo-plugins
60+
- name: Install cross
61+
run: cargo install cross || true
62+
- run: ./scripts/cross-tests.sh "docs" ${{ matrix.rust }} ${{ matrix.target }}
63+
64+
clippy:
65+
runs-on: ubuntu-latest
66+
strategy:
67+
matrix:
68+
rust:
69+
- beta
70+
steps:
71+
- uses: actions/checkout@v2
72+
- uses: actions-rs/toolchain@v1
73+
with:
74+
profile: minimal
75+
toolchain: ${{ matrix.rust }}
76+
override: true
77+
components: clippy
78+
- run: cargo clippy --features docs
79+

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name = "ndarray"
44
version = "0.15.6"
55
edition = "2018"
6-
rust-version = "1.51"
6+
rust-version = "1.57"
77
authors = [
88
"Ulrik Sverdrup \"bluss\"",
99
"Jim Turner"

0 commit comments

Comments
 (0)