Skip to content

Commit

Permalink
Update CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
athre0z committed Jul 30, 2023
1 parent f06593c commit fd4aba0
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
name: CI
on: [push, pull_request]

jobs:
build_and_test:
name: color-backtrace
runs-on: "${{ matrix.image_name }}"

strategy:
matrix:
image_name: ["macOS-latest", "windows-2016", "ubuntu-18.04"]

image_name: ["macOS-latest", "windows-latest", "ubuntu-22.04"]
features: ["--all-features"]
include:
- image_name: "ubuntu-22.04"
features: "--no-default-features"
steps:
- uses: actions/checkout@v2
name: Checkout
- uses: actions-rs/cargo@v1
name: Build
with:
command: build
args: --all-features --examples
- uses: actions-rs/cargo@v1
name: Test
with:
command: test
- name: Clone
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build ${{ matrix.features }}
- name: Test
run: cargo test ${{ matrix.features }}

0 comments on commit fd4aba0

Please sign in to comment.