Skip to content

Commit

Permalink
Merge pull request #30 from smrpn/test-multiple-os
Browse files Browse the repository at this point in the history
ci: add test for multiple os
  • Loading branch information
hackerchai authored Apr 25, 2021
2 parents b491b2b + 1e1c032 commit 1a79901
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:
jobs:
build:
name: Auto Build CI
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [nightly, beta, stable]

steps:
- name: Checkout Repository
Expand All @@ -25,8 +29,10 @@ jobs:
components: rustfmt, clippy
override: true

- name: Install Dependencies
run: sudo apt-get install libssl-dev
- name: Install Dependencies (for ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libssl-dev
- name: Cargo Build
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 1a79901

Please sign in to comment.