From d90eef908ff1a0e46231787cb24365adc96dab06 Mon Sep 17 00:00:00 2001 From: Matthias Reitinger Date: Sun, 24 Mar 2024 23:01:11 +0100 Subject: [PATCH] Moved from Travis to GitHub Actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .travis.yml | 8 -------- README.md | 2 +- 3 files changed, 25 insertions(+), 9 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..026ad11 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: clippy + - name: Run Clippy + run: cargo clippy + - name: Build + run: cargo build --verbose diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 09d3126..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: rust -os: linux -dist: focal -before_script: - - rustup component add clippy -script: - - cargo clippy - - cargo build --verbose diff --git a/README.md b/README.md index 15eadfa..c8fab95 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# rustboy [![Build Status](https://app.travis-ci.com/reima/rustboy.svg?branch=master)](https://app.travis-ci.com/github/reima/rustboy) +# rustboy ![Build Status](https://github.com/reima/rustboy/actions/workflows/ci.yml/badge.svg) `rustboy` is an emulator for the Nintendo GameBoy written in the Rust programming language.