From 32ae82214c7c06744f1e8bc0f2789551087a20fe Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 24 Oct 2021 11:01:58 -0400 Subject: ci: Switch to GitHub Actions --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .travis.yml | 11 ----------- README.md | 2 +- 3 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..39a9378 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - uses: actions-rs/cargo@v1 + with: + command: test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 331ef33..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: rust - -rust: - - stable - - beta - - nightly - -script: - - cargo build --verbose --benches - - cargo rustdoc --verbose - - cargo test --verbose diff --git a/README.md b/README.md index 80688ea..a254526 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![crates.io](https://img.shields.io/crates/v/acap.svg)](https://crates.io/crates/acap) [![Documentation](https://docs.rs/acap/badge.svg)](https://docs.rs/acap) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/tavianator/knn/blob/main/LICENSE) -[![Build Status](https://travis-ci.com/tavianator/acap.svg?branch=main)](https://travis-ci.com/tavianator/acap) +[![CI Status](https://github.com/tavianator/acap/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tavianator/acap/actions/workflows/ci.yml) As Close As Possible — [nearest neighbor search] in Rust. -- cgit v1.2.3