From ed7606b3b7ee3dfa32314b6d8417511bda437bcb Mon Sep 17 00:00:00 2001 From: Jake Swenson Date: Sun, 26 Apr 2020 11:46:55 -0700 Subject: [PATCH] add macos matrix support --- .github/workflows/build.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6738b0b..2e3b390 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build on: push: @@ -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