Skip to content

Commit

Permalink
Migrate to github actions (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Nov 6, 2020
1 parent 080e9ed commit ccd7cb8
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 39 deletions.
81 changes: 81 additions & 0 deletions .github/workflows/rust.yml
@@ -0,0 +1,81 @@
name: Rust

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
check:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
rust:
- stable
- beta
- nightly
- 1.32.0
steps:
- name: Checkout sources
uses: actions/checkout@v2

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

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

embedded:
name: Build (embedded)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
target: thumbv6m-none-eabi
override: true

- name: Default features
uses: actions-rs/cargo@v1
with:
command: build
args: -Z avoid-dev-deps --features example_generated --target thumbv6m-none-eabi

suite:
name: Test suite
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
rust:
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v2

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

- name: Default features
uses: actions-rs/cargo@v1
with:
command: test
args: -p test_suite
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

0 comments on commit ccd7cb8

Please sign in to comment.