Skip to content

Commit f3f230b

Browse files
authored
Set MSRV to Rust 1.70 and test in CI (#12)
* Set MSRV to Rust 1.70 and test in CI * Add toolchain * try fixing * Try again * Add `--component rust-std` * Changes again * ? * maybe now
1 parent db0e01b commit f3f230b

File tree

4 files changed

+126
-20
lines changed

4 files changed

+126
-20
lines changed

.github/workflows/rust.yml

Lines changed: 68 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,72 @@
1-
name: Rust
1+
on: [push, pull_request]
22

3-
on:
4-
push:
5-
branches: [ "v0" ]
6-
pull_request:
7-
branches: [ "v0" ]
8-
9-
env:
10-
CARGO_TERM_COLOR: always
3+
name: tests
114

125
jobs:
13-
build:
14-
15-
runs-on: ubuntu-latest
16-
6+
test-lockfile:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
tc: [1.70.0, stable, nightly]
12+
steps:
13+
- uses: taiki-e/checkout-action@v1
14+
- uses: taiki-e/install-action@v2
15+
with:
16+
tool: cargo-hack,cargo-minimal-versions
17+
- run: rustup set profile minimal
18+
- run: rustup toolchain install ${{ matrix.tc }}
19+
- run: cargo +${{ matrix.tc }} test --all --all-features
20+
test:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest, macos-latest, windows-latest]
25+
tc: [1.70.0, stable, beta]
26+
steps:
27+
- uses: taiki-e/checkout-action@v1
28+
- uses: taiki-e/install-action@v2
29+
with:
30+
tool: cargo-hack,cargo-minimal-versions
31+
- run: rustup set profile minimal
32+
- run: rustup toolchain install ${{ matrix.tc }}
33+
- run: cargo +${{ matrix.tc }} minimal-versions test --all --all-features
34+
cross-compile:
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
matrix:
38+
os: [ubuntu-latest]
39+
tc: [1.70.0, stable, beta]
40+
cc:
41+
- aarch64-linux-android
42+
- i686-pc-windows-gnu
43+
- i686-unknown-freebsd
44+
- i686-unknown-linux-gnu
45+
- wasm32-unknown-unknown
46+
- x86_64-apple-darwin
47+
- x86_64-unknown-redox
48+
steps:
49+
- uses: taiki-e/checkout-action@v1
50+
- uses: taiki-e/install-action@v2
51+
with:
52+
tool: cargo-hack,cargo-minimal-versions
53+
- run: rustup set profile minimal
54+
- run: rustup toolchain install ${{ matrix.tc }}
55+
- run: rustup target add ${{ matrix.cc }} --toolchain ${{ matrix.tc }}
56+
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}
57+
cross-compile-ios:
58+
runs-on: ${{ matrix.os }}
59+
strategy:
60+
matrix:
61+
os: [macos-latest]
62+
tc: [1.70.0, stable, beta]
63+
cc: [aarch64-apple-ios]
1764
steps:
18-
- uses: actions/checkout@v3
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
65+
- uses: taiki-e/checkout-action@v1
66+
- uses: taiki-e/install-action@v2
67+
with:
68+
tool: cargo-hack,cargo-minimal-versions
69+
- run: rustup set profile minimal
70+
- run: rustup toolchain install ${{ matrix.tc }}
71+
- run: rustup target add ${{ matrix.cc }} --toolchain ${{ matrix.tc }}
72+
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/target
2-
/Cargo.lock

Cargo.lock

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ categories = [
2323
"filesystem",
2424
]
2525
readme = "README.md"
26+
rust-version = "1.70"
2627

2728
[dependencies]
28-
traitful = "0.3"
29+
traitful = "0.3.0"

0 commit comments

Comments
 (0)