name: macos-ci on: - push - pull_request jobs: macos-ci: runs-on: macos-latest strategy: fail-fast: false matrix: compiler: - clang - gcc strictness: - "normal" - "strict" steps: - name: Configure environment run: | echo "Nothing to do for Macos" - name: Install packages run: | brew install \ $(case ${{matrix.compiler }} in (gcc) echo ${{matrix.compiler}} ;; esac) \ slang \ cairo \ freeimage \ libgd \ mysql \ postgresql \ qt5 - name: Checkout code uses: actions/checkout@v3 with: ref: ${{ github.event.client_payload.branch }} - run: pwd - run: ls - name: Prepare ccache using action uses: hendrikmuhs/ccache-action@v1.2.10 with: key: macos-${{ matrix.cpu }}-${{ matrix.compiler }}-${{ matrix.strictness }}-ci max-size: "32M" - name: Configure build shell run: | set -ex HB_USER_CFLAGS="-arch arm64 -arch x86_64" HB_USER_LDFLAGS="-arch arm64 -arch x86_64" case ${{matrix.strictness}} in normal) ;; strict) case ${{matrix.compiler}} in (gcc) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; (*) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; esac ;; esac tee ./.bashrc <