Skip to content

Commit fd4aba0

Browse files
committed
Update CI workflows
1 parent f06593c commit fd4aba0

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
name: CI
22
on: [push, pull_request]
3-
43
jobs:
54
build_and_test:
65
name: color-backtrace
76
runs-on: "${{ matrix.image_name }}"
8-
97
strategy:
108
matrix:
11-
image_name: ["macOS-latest", "windows-2016", "ubuntu-18.04"]
12-
9+
image_name: ["macOS-latest", "windows-latest", "ubuntu-22.04"]
10+
features: ["--all-features"]
11+
include:
12+
- image_name: "ubuntu-22.04"
13+
features: "--no-default-features"
1314
steps:
14-
- uses: actions/checkout@v2
15-
name: Checkout
16-
- uses: actions-rs/cargo@v1
17-
name: Build
18-
with:
19-
command: build
20-
args: --all-features --examples
21-
- uses: actions-rs/cargo@v1
22-
name: Test
23-
with:
24-
command: test
15+
- name: Clone
16+
uses: actions/checkout@v3
17+
- name: Install Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
- name: Build
20+
run: cargo build ${{ matrix.features }}
21+
- name: Test
22+
run: cargo test ${{ matrix.features }}

0 commit comments

Comments
 (0)