Skip to content

Commit

Permalink
Run CI on Windows too
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Jun 13, 2020
1 parent 2632739 commit 5c53332
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,20 @@ env:
CARGO_INCREMENTAL: 0

jobs:
test-mac:
runs-on: macos-latest
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: rust version
run: rustup default 1.43.0
- name: add rustfmt
run: rustup component add rustfmt
- name: Checkout
uses: actions/checkout@master
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
submodules: true
- name: Check Rust formatting
run: cargo fmt -- --check
- name: build
run: cargo build
- name: unit tests
run: cargo test -- --nocapture

test-linux:
runs-on: ubuntu-latest
steps:
- name: rust version
run: rustup default 1.43.0
- name: add rustfmt
run: rustup component add rustfmt
toolchain: 1.43.0
override: true
components: rustfmt
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2
with:
submodules: true
- name: Check Rust formatting
Expand Down

0 comments on commit 5c53332

Please sign in to comment.