From 6927a046dcd56374a8d99fb12a5b74b6411199fa Mon Sep 17 00:00:00 2001 From: Brent Westbrook <36778786+ntBre@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:25:49 -0400 Subject: [PATCH] Add macos to test matrix --- .github/workflows/test.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a411f7..45633ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,19 +7,28 @@ on: name: test jobs: required: - runs-on: ubuntu-latest - name: ubuntu / ${{ matrix.toolchain }} + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} / ${{ matrix.toolchain }} strategy: matrix: toolchain: [nightly] + os: [ubuntu-latest, macos-13] + include: + - os: macos-13 + is_mac: 1 steps: - uses: actions/checkout@v4 with: submodules: true - - name: Install X libraries + - name: Install X libraries (ubuntu) + if: ${{ ! matrix.is_mac }} run: | sudo apt-get update sudo apt-get install libxft-dev libxinerama-dev + - name: Install X libraries (mac) + if: ${{ matrix.is_mac }} + run: | + brew install libxft libxinerama - name: Install ${{ matrix.toolchain }} uses: dtolnay/rust-toolchain@master with: