mirror of
https://gitee.com/openharmony/third_party_rust_strsim-rs
synced 2024-11-22 23:29:43 +00:00
Switch to GitHub Actions for CI
This commit is contained in:
parent
f3918bd78a
commit
c4cdd9c35d
24
.github/workflows/ci.yml
vendored
Normal file
24
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
|
||||
rust: ["beta", "stable", "1.31.0"]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
- name: Build the code
|
||||
run: cargo build --verbose
|
||||
- name: Test the code
|
||||
run: cargo test --verbose
|
15
.travis.yml
15
.travis.yml
@ -1,15 +0,0 @@
|
||||
language: rust
|
||||
|
||||
os:
|
||||
- linux
|
||||
- windows
|
||||
|
||||
rust:
|
||||
- 1.31.0
|
||||
- nightly
|
||||
- beta
|
||||
- stable
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- rust: nightly
|
@ -2,7 +2,7 @@
|
||||
|
||||
[![Crates.io](https://img.shields.io/crates/v/strsim.svg)](https://crates.io/crates/strsim)
|
||||
[![Crates.io](https://img.shields.io/crates/l/strsim.svg?maxAge=2592000)](https://github.com/dguo/strsim-rs/blob/master/LICENSE)
|
||||
[![build status](https://travis-ci.org/dguo/strsim-rs.svg?branch=master)](https://travis-ci.org/dguo/strsim-rs)
|
||||
[![CI status](https://github.com/dguo/strsim-rs/workflows/CI/badge.svg)](https://github.com/dguo/strsim-rs/actions?query=branch%3Amaster)
|
||||
[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
|
||||
|
||||
[Rust](https://www.rust-lang.org) implementations of [string similarity metrics]:
|
||||
|
Loading…
Reference in New Issue
Block a user