Skip to content

Commit

Permalink
Merge pull request #22 from JohnTitor/actions
Browse files Browse the repository at this point in the history
Setup initial actions
  • Loading branch information
JohnTitor authored May 30, 2020
2 parents f29ad79 + 18e4d64 commit 5507e8d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- master

jobs:
ci:
strategy:
fail-fast: false
matrix:
version:
- stable
- nightly
target:
- x86_64-unknown-linux-gnu
- x86_64-apple-darwin
- x86_64-pc-windows-msvc
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest

name: ${{ matrix.version }} - ${{ matrix.target }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

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

- name: Build crate
uses: actions-rs/cargo@v1
with:
command: build

0 comments on commit 5507e8d

Please sign in to comment.