]> git.lizzy.rs Git - enumset.git/commitdiff
Use Github Actions exclusively instead of travis.
authorAlissa Rao <lymia@lymiahugs.com>
Sun, 2 Oct 2022 21:50:31 +0000 (14:50 -0700)
committerAlissa Rao <lymia@lymiahugs.com>
Sun, 2 Oct 2022 21:50:31 +0000 (14:50 -0700)
.github/workflows/rust.yml
.travis.yml [deleted file]

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 }}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index 8a378b4..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-language: rust
-
-matrix:
-  include:
-    - rust: stable
-    - rust: beta
-    - rust: nightly
-    - rust: 1.36.0
-
-script:
-  - cd "${TRAVIS_BUILD_DIR}/enumset"
-  - cargo test
-  - cargo test --features serde
-  - cargo test --features alloc
-  - cargo test --features std
-  - cargo test --release --all-features