From 52ae26a95bce4442ad3f935fde95b83d09aad6ea Mon Sep 17 00:00:00 2001 From: Yury Popov Date: Sun, 11 Sep 2022 23:59:10 +0300 Subject: [PATCH] Add macos-latest to build matrix --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e349b16..582de83c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,12 +10,13 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} - name: Build with ${{ matrix.sanitizer }} sanitizer on ${{ matrix.arch }} + name: Build with ${{ matrix.sanitizer }} sanitizer on ${{ matrix.os }} ${{ matrix.arch }} strategy: fail-fast: false matrix: + os: [ubuntu-latest, macos-latest] arch: [x86-64, x86-32] sanitizer: [no, address, leak, memory, thread, undefined, valgrind] @@ -86,14 +87,28 @@ jobs: sanitizer: memory - arch: x86-32 sanitizer: thread + # 32-bit macOS is not supported + - os: macos-latest + arch: x86-32 + # These are not supported on macos + - os: macos-latest + sanitizer: leak + - os: macos-latest + sanitizer: memory + - os: macos-latest + sanitizer: valgrind steps: - uses: actions/checkout@v2 - name: enable 32bit architecture run: sudo dpkg --add-architecture i386 if: matrix.arch == 'x86-32' - - name: dependencies + - name: dependencies-apt + if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install libpcaudio-dev libsonic-dev ronn kramdown ${{ matrix.deps }} ${{ matrix.archdeps }} + - name: dependencies-brew + if: matrix.os == 'macos-latest' + run: brew install libtool automake ronn OJFord/homebrew-formulae/kramdown ${{ matrix.archdeps }} - name: autoconf run: ./autogen.sh ; chmod -x INSTALL m4/*.m4 - name: configure