From 707055cdbae270f18223d5cca73d5cde49e65410 Mon Sep 17 00:00:00 2001 From: Thomas Karpiniec Date: Tue, 14 Jun 2022 21:26:29 +1000 Subject: [PATCH] Test on all OSes on push/PR --- .github/workflows/rust.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e34b8e1..b76ebee 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -5,11 +5,19 @@ on: [push] jobs: build: - runs-on: windows-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + include: + - os: windows-latest + features: --features paste + - os: macos-latest + features: --features paste + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v1 - name: Build - run: cargo build --features paste --verbose + run: cargo build ${{ matrix.features || '' }} - name: Run tests - run: cargo test --features paste --verbose + run: cargo test ${{ matrix.features || '' }} -- 2.39.5