diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4820b5e..f1fb069 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,10 @@ on: pull_request: create: +env: + PKG_HOMEBREW_DEPS: >- + libxml2 + jobs: notify: runs-on: ubuntu-latest @@ -53,7 +57,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, ubuntu-latest] + os: [macos-latest, windows-latest, ubuntu-latest] perl: ['5'] include: - { os: 'ubuntu-latest', perl: "5.32" } @@ -71,6 +75,13 @@ jobs: with: name: dist + # Setup system package deps + - name: Setup system deps (homebrew) + if: runner.os == 'macOS' + run: | + brew install ${{ env.PKG_HOMEBREW_DEPS }} + echo "PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig" >> $GITHUB_ENV + - name: Set up perl uses: shogo82148/actions-setup-perl@v1 if: matrix.os != 'windows-latest'