Skip to content
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.rs text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4
*.fixed linguist-language=Rust
62 changes: 62 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
default-features:
strategy:
matrix:
rust: ["stable", "beta", "nightly"]
os: [windows-latest, ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

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

- name: Run tests
run: cargo test

- name: Run test-project tests
run: cd test-project && cargo test


rustc-nightly-feature:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Add rustc-dev component
run: rustup component add rustc-dev

- name: Run tests
run: cargo +nightly build --features rustc

- name: Run test-project tests with `rustc` feature
run: cd test-project && cargo +nightly test --features rustc

22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

25 changes: 0 additions & 25 deletions appveyor.yml

This file was deleted.