aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-07-10 20:24:21 -0700
committerHaibo Huang <hhb@google.com>2020-07-10 20:24:21 -0700
commit16e11beaa28884abb35f33cd9849bad491d6bd4d (patch)
treec92cd5f80f968e9a5a087c4037e3020c2dfcbf8b /.github/workflows/ci.yml
parent93c59c1336c3e8b51d8a94655fd25495462036e3 (diff)
downloadremain-16e11beaa28884abb35f33cd9849bad491d6bd4d.tar.gz
Upgrade rust/crates/remain to 0.2.2
Change-Id: I5090ad4cf3bcd642d320ca40c98d74d3e3f63eef
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..bf8f426
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,39 @@
+name: CI
+
+on:
+ push:
+ pull_request:
+ schedule: [cron: "40 1 * * *"]
+
+jobs:
+ nightly:
+ name: Rust nightly
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: dtolnay/rust-toolchain@nightly
+ - run: cargo test
+
+ test:
+ name: Rust ${{matrix.rust}}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ rust: [beta, stable, 1.36.0]
+ steps:
+ - uses: actions/checkout@v2
+ - uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: ${{matrix.rust}}
+ - run: cargo test
+ env:
+ RUSTFLAGS: --cfg remain_stable_testing
+
+ msrv:
+ name: Rust 1.31.0
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: dtolnay/rust-toolchain@1.31.0
+ - run: cargo check