Skip to content

Commit

Permalink
add macos matrix support
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeswenson committed Apr 26, 2020
1 parent ec2fd37 commit ed7606b
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Build

on:
push:
Expand All @@ -8,12 +8,17 @@ on:

jobs:
build:

runs-on: ubuntu-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-10.15]
features: [no-copy, default]
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v2
- name: Install dependencies for copy feature on linux
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libdbus-1-dev libxcb-shape0 libxcb-shape0-dev libxcb-xfixes0-dev libxcb-xfixes0
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit ed7606b

Please sign in to comment.