Skip to content

Commit 328665c

Browse files
authored
cicd,chore: added CI and changed minimum target version (#3)
1 parent cbda989 commit 328665c

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/rust.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Rust CI
2+
3+
on:
4+
push:
5+
branches: [ '*', '*/*' ]
6+
7+
jobs:
8+
test:
9+
name: Test for Rust ${{ matrix.rustver }} on ${{ matrix.os }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
rustver: ['1.80.1', stable]
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
toolchain: ${{ matrix.rustver }}
21+
- run: cargo test -- --show-output
22+
23+
cover:
24+
name: Coverage for Rust ${{ matrix.rustver }} on ${{ matrix.os }}
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
rustver: [stable]
30+
os: [ubuntu-latest]
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: dtolnay/rust-toolchain@stable
34+
with:
35+
toolchain: ${{ matrix.rustver }}
36+
components: llvm-tools-preview
37+
- run: cargo install cargo-llvm-cov
38+
- run: cargo llvm-cov

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "sabi-rust"
33
version = "0.1.0"
44
authors = ["Takayuki Sato <[email protected]>"]
55
edition = "2021"
6-
rust-version = "1.74.1"
6+
rust-version = "1.80.1"
77
description = "A small framework to separate logics and data accesses for Rust application."
88
documentation = "https://docs.rs/sabi-rust"
99
readme = "README.md"

0 commit comments

Comments
 (0)