Skip to content

Commit

Permalink
Replace Travis with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwong committed Jun 22, 2023
1 parent 15e7e31 commit 9e5d797
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 21 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: ["master"]
tags: ["[0-9]+.[0-9]+.[0-9]+"]
pull_request:
branches: ["master"]
workflow_dispatch:

jobs:
ci:
strategy:
matrix:
rust: [beta, stable, 1.38.0]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
targets: thumbv7em-none-eabihf
- run: cargo fmt -- --check
- run: cargo test
- run: cargo build --target thumbv7em-none-eabihf
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@ description = "Fast lookup of the Unicode General Category property for char"
keywords = ["unicode", "general", "category", "no-std"]
categories = ["text-processing"]

[badges]
travis-ci = { repository = "yeslogic/unicode-general-category" }

[dependencies]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ unicode-general-category
========================

<div align="center">
<a href="https://travis-ci.com/yeslogic/unicode-general-category">
<img src="https://travis-ci.com/yeslogic/unicode-general-category.svg?branch=master" alt="Build Status"></a>
<a href="https://github.com/yeslogic/unicode-general-category/actions/workflows/ci.yml">
<img src="https://github.com/yeslogic/unicode-general-category/actions/workflows/ci.yml/badge.svg" alt="Build Status"></a>
<a href="https://docs.rs/unicode-general-category">
<img src="https://docs.rs/unicode-general-category/badge.svg" alt="Documentation">
</a>
Expand Down

0 comments on commit 9e5d797

Please sign in to comment.