-
Notifications
You must be signed in to change notification settings - Fork 66
46 lines (42 loc) · 1.15 KB
/
main.yaml
File metadata and controls
46 lines (42 loc) · 1.15 KB
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
name: CI
on: [push, pull_request]
env:
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
jobs:
test:
name: Test
strategy:
matrix:
os: [windows-2025, ubuntu-24.04, macos-15]
rust: [stable, nightly]
include:
- os: ubuntu-24.04
rust: beta
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- run: cargo test
doc_fmt:
name: Document and check formatting
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update nightly && rustup default nightly
- run: cargo doc
- run: cargo fmt --check
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
msrv="$(cargo metadata --format-version=1 |
jq -r '.packages[] | select(.name == "getopts").rust_version'
)"
rustup update "$msrv" && rustup default "$msrv"
- run: |
cargo update -p unicode-width --precise 0.1.8
cargo check