From fd4aba0335735778ac025c2a67a0d0f847b523e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20H=C3=B6ner?= Date: Sun, 30 Jul 2023 18:14:45 +0200 Subject: [PATCH] Update CI workflows --- .github/workflows/main.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b07e3ff..33df0a4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file + - 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 }}