]> code.octet-stream.net Git - hashgood/commitdiff
Test on all OSes on push/PR
authorThomas Karpiniec <tom.karpiniec@outlook.com>
Tue, 14 Jun 2022 11:26:29 +0000 (21:26 +1000)
committerThomas Karpiniec <tom.karpiniec@outlook.com>
Tue, 14 Jun 2022 11:26:29 +0000 (21:26 +1000)
.github/workflows/rust.yml

index e34b8e1e976c45760e335e9a84ce9ff78d4ead4b..b76ebee438ae65b844470f9db8218cd281e803e8 100644 (file)
@@ -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 || '' }}