]> git.lizzy.rs Git - enumset.git/blobdiff - .github/workflows/rust.yml
Use Github Actions exclusively instead of travis.
[enumset.git] / .github / workflows / rust.yml
index 2ce3cc2797f04c63b75c3bc686f9564d5f4c1d05..105a70f651d55a893d9ff3eeccd3da61657c7937 100644 (file)
@@ -4,10 +4,17 @@ on: [push, pull_request]
 
 jobs:
   build:
+    strategy:
+      matrix:
+        rustver: ["stable", "beta", "nightly", "1.36.0"]
+        args: ["", "--features serde", "--features alloc", "--features std", "--release --all-features"]
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v1
-    - name: Build
-      run: cargo build --verbose
-    - name: Run tests
-      run: cargo test --verbose
+    - uses: actions-rs/toolchain@v1
+      with:
+        toolchain: ${{ matrix.rustver }}
+    - uses: actions-rs/cargo@v1
+      with:
+        command: test
+        args: ${{ matrix.args }}