From 99057afde67f5f012589e092cce76989a68597a3 Mon Sep 17 00:00:00 2001 From: Greg Guthe Date: Fri, 15 Mar 2024 12:58:33 -0400 Subject: [PATCH] migrate Linux CI to GHA --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b29f2b2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: cargo-show - build & test +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: cargo-show - latest + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + toolchain: + - stable + - beta + - nightly + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.toolchain == 'nightly' }} + steps: + - uses: actions/checkout@v3 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0294aab..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: rust -rust: - - stable - - beta - - nightly -matrix: - allow_failures: - - rust: nightly -sudo: required -dist: trusty