Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub Actions for CI #5

Merged
merged 5 commits into from
Jul 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: "0 9 7 * *" # Run on at 9am on the 7th of every month

env:
RUSTFLAGS: -Dwarnings

jobs:
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, nightly]
steps:
- uses: actions/checkout@master

- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true

- name: check
uses: actions-rs/cargo@v1
with:
command: check
args: --all --bins --examples

- name: tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all

check_fmt_and_docs:
name: Checking fmt, clippy, and docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: setup
run: |
rustup component add clippy rustfmt
rustc --version
- name: clippy
run: cargo clippy --tests --examples -- -D warnings

- name: fmt
run: cargo fmt --all -- --check

- name: Docs
run: cargo doc --no-deps
53 changes: 0 additions & 53 deletions .travis.yml

This file was deleted.

23 changes: 0 additions & 23 deletions scripts/before_deploy.ps1

This file was deleted.

32 changes: 0 additions & 32 deletions scripts/before_deploy.sh

This file was deleted.

43 changes: 0 additions & 43 deletions scripts/install.sh

This file was deleted.

31 changes: 0 additions & 31 deletions scripts/script.sh

This file was deleted.