diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..8aec39f --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,42 @@ +name: RocksDB build + +on: [push, pull_request] + +jobs: + test-librocksdb-sys: + name: Test librocksdb-sys crate + runs-on: + - windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + with: + submodules: true + + - name: Install dependencies + run: choco install llvm -y + + - name: Run librocksdb-sys tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --manifest-path=librocksdb-sys/Cargo.toml + + test-rocksdb: + name: Test rocksdb crate + runs-on: + - windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + with: + submodules: true + + - name: Install dependencies + run: choco install llvm -y + + - name: Run rocksdb tests + uses: actions-rs/cargo@v1 + with: + command: test + args: -- --skip test_iterator_outlive_db diff --git a/.travis.yml b/.travis.yml index dc3c5c5..4db8271 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,4 +20,4 @@ install: script: - cargo fmt --all -- --check - cargo test --manifest-path=librocksdb-sys/Cargo.toml - - cargo test + - cargo test -- --skip test_iterator_outlive_db diff --git a/README.md b/README.md index c83754e..62102f3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ rust-rocksdb ============ [![Build Status](https://travis-ci.org/rust-rocksdb/rust-rocksdb.svg?branch=master)](https://travis-ci.org/rust-rocksdb/rust-rocksdb) +![RocksDB build](https://github.com/rust-rocksdb/rust-rocksdb/workflows/RocksDB%20build/badge.svg?branch=master) [![crates.io](https://img.shields.io/crates/v/rocksdb.svg)](https://crates.io/crates/rocksdb) [![documentation](https://docs.rs/rocksdb/badge.svg)](https://docs.rs/rocksdb) [![license](https://img.shields.io/crates/l/rocksdb.svg)](https://github.com/rust-rocksdb/rust-rocksdb/blob/master/LICENSE)