Skip to content

Commit

Permalink
Added experimental Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Apr 29, 2020
1 parent 0f3f4c9 commit 96855d9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on: [push]

name: build

jobs:
lint:
name: Code lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- run: cargo fmt --all -- --check

test:
name: Tests
runs-on: ${{ matrix.os }} - Rust ${{ matrix.rust }}
strategy:
matrix:
build: [linux, windows, macos]
include:
- build: linux
os: ubuntu-latest
rust: nightly
- build: macos
os: macos-latest
rust: nightly
- build: windows
os: windows-latest
rust: nightly
steps:
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
env:
RUST_BACKTRACE: 1

0 comments on commit 96855d9

Please sign in to comment.