Skip to content

Commit

Permalink
Merge pull request #12 from murarth/github-ci
Browse files Browse the repository at this point in the history
Use GitHub Actions for CI
  • Loading branch information
murarth authored Jan 17, 2020
2 parents 7c1f2c0 + d61a4db commit 380f934
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 9 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
pull_request:
paths:
- '**.rs'
- '**.toml'
- '.github/workflows/ci.yml'
push:
branches: [master]
paths:
- '**.rs'
- '**.toml'
- '.github/workflows/ci.yml'

jobs:
Test:
strategy:
fail-fast: false

matrix:
platform:
- { target: x86_64-pc-windows-gnu, os: windows-latest }
- { target: x86_64-pc-windows-msvc, os: windows-latest }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
- { target: x86_64-apple-darwin, os: macos-latest }

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

steps:
- uses: actions/checkout@v1
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable-${{ matrix.platform.target }}

- name: Build
run: cargo build --verbose

- name: Test
run: cargo test --verbose

env:
RUST_BACKTRACE: 1
RUST_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0"
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

0 comments on commit 380f934

Please sign in to comment.