From 6dd7f98d07577cb71936a2727cfcb08f3943f9a5 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Sun, 20 Oct 2019 17:41:13 +0200 Subject: [PATCH] Add github actions (#244) * Add github actions * Update readme * Delete travis and appveyor * Rm Iamdone * Update bors --- .github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 27 ----------------- README.md | 3 +- appveyor.yml | 21 ------------- bors.toml | 5 +--- imdone-help.md | 17 ----------- 6 files changed, 66 insertions(+), 71 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml delete mode 100644 imdone-help.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..85ea929 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +on: [push, pull_request] + +name: Continuous integration + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: check + + test: + name: Test Suite + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: rustup component add clippy + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1de3d32..0000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -os: - - linux - - osx - -language: rust - -before_script: -- rustup component add rustfmt - -rust: - - stable - -script: - - cargo fmt --all -- --check - - cargo build --manifest-path ash/Cargo.toml - - cargo build --manifest-path examples/Cargo.toml - - cargo build --manifest-path generator/Cargo.toml - -branches: - only: - # This is where pull requests from "bors r+" are built. - - staging - # This is where pull requests from "bors try" are built. - - trying - # Uncomment this to enable building pull requests. - - master - diff --git a/README.md b/README.md index 9cf85bd..ce6bf69 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,7 @@ A very lightweight wrapper around Vulkan [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE-MIT) [![LICENSE](https://img.shields.io/badge/license-apache-blue.svg)](LICENSE-APACHE) [![Documentation](https://docs.rs/ash/badge.svg)](https://docs.rs/ash) -[![Build Status](https://travis-ci.org/MaikKlein/ash.svg?branch=master)](https://travis-ci.org/MaikKlein/ash) -[![Build status](https://ci.appveyor.com/api/projects/status/ed7757as3a4ebexn/branch/master?svg=true)](https://ci.appveyor.com/project/MaikKlein/ash/branch/master) +[![Build Status](https://github.com/MaikKlein/ash/workflows/CI/badge.svg)](https://github.com/MaikKlein/ash/actions?workflow=CI) [![Join the chat at https://gitter.im/MaikKlein/ash](https://badges.gitter.im/MaikKlein/ash.svg)](https://gitter.im/MaikKlein/ash?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Crates.io Version](https://img.shields.io/crates/v/ash.svg)](https://crates.io/crates/ash) [![](https://tokei.rs/b1/github/maikklein/ash)](https://github.com/MaikKlein/ash) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 574dc1a..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,21 +0,0 @@ -os: Visual Studio 2015 - -environment: - matrix: - # Stable 64-bit MSVC - - channel: stable - target: x86_64-pc-windows-msvc - -install: - - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - - rustup-init -yv --default-toolchain %channel% --default-host %target% - - set PATH=%PATH%;%USERPROFILE%\.cargo\bin - - rustc -vV - - cargo -vV - -# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents -# the "directory does not contain a project or solution file" error. -build: off - -test_script: -- cargo test --verbose %cargoflags% diff --git a/bors.toml b/bors.toml index 954e4e6..1b711da 100644 --- a/bors.toml +++ b/bors.toml @@ -1,6 +1,3 @@ -status = [ - "continuous-integration/travis-ci/push", - "continuous-integration/appveyor/branch" -] +status = ["check"] timeout_sec = 18000 # 5 hours diff --git a/imdone-help.md b/imdone-help.md deleted file mode 100644 index 11e1d59..0000000 --- a/imdone-help.md +++ /dev/null @@ -1,17 +0,0 @@ -imdone-help -==== -#HELP: Try dragging this card to your new list id:8 +imdone-help -#HELP: Ignore files by adding `.imdoneignore` to the root of your project. id:1 +imdone-help -- [imdone.io](https://imdone.io) implements this with the [ignore package](https://www.npmjs.com/package/ignore) - -#HELP: Use markdown in todo comments or in the description id:3 +imdone-help -- **This is a description...** - -#HELP: Add tags to your comments like this `+mvp` id:5 +imdone-help - -#HELP: Add metadata like this... points:5 id:7 +imdone-help -- [imdone.io](https://imdone.io) adds `id:n` to all your todo comments, so take care to leave that one alone - -#HELP: Include subtasks using GFM task lists id:9 +imdone-help -- [ ] A task yet to be done -- [x] This is done