mirror of
https://github.com/openharmony/third_party_rust_strsim-rs.git
synced 2026-06-30 21:37:54 -04:00
Switch to GitHub Actions for CI
This commit is contained in:
@@ -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
@@ -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 @@
|
||||
|
||||
[](https://crates.io/crates/strsim)
|
||||
[](https://github.com/dguo/strsim-rs/blob/master/LICENSE)
|
||||
[](https://travis-ci.org/dguo/strsim-rs)
|
||||
[](https://github.com/dguo/strsim-rs/actions?query=branch%3Amaster)
|
||||
[](https://github.com/rust-secure-code/safety-dance/)
|
||||
|
||||
[Rust](https://www.rust-lang.org) implementations of [string similarity metrics]:
|
||||
|
||||
Reference in New Issue
Block a user