From 8f6a034d1f8027ffd701280f1da3cac52ad1d0c4 Mon Sep 17 00:00:00 2001 From: Adrian Wong Date: Thu, 22 Jun 2023 11:30:10 +1000 Subject: [PATCH] Replace Travis with GitHub Actions --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 16 ---------------- README.md | 4 ++-- 3 files changed, 29 insertions(+), 18 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..53706a7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 05e3d0c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -os: linux -language: rust - -rust: - - beta - - stable - - 1.38.0 - -before_script: - - rustup component add rustfmt - - rustup target add thumbv7em-none-eabihf - -script: - - cargo fmt -- --check - - cargo test - - cargo build --target thumbv7em-none-eabihf diff --git a/README.md b/README.md index 1519d61..02b93c9 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ unicode-joining-type ====================
- - Build Status + + Build Status Documentation