diff --git a/.github/README.md b/.github/README.md index a1bd406e9..b1229f86b 100644 --- a/.github/README.md +++ b/.github/README.md @@ -2,6 +2,7 @@ [![CodeFactor](https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/badge)](https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk) [![core-build](https://github.com/azerothcore/azerothcore-wotlk/workflows/core-build/badge.svg?branch=master&event=push)](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Acore-build+branch%3Amaster+event%3Apush) +[![macos-build](https://github.com/azerothcore/azerothcore-wotlk/workflows/macos-build/badge.svg?branch=master&event=push)](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Amacos-build+branch%3Amaster+event%3Apush) [![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=40032087)](https://www.bountysource.com/teams/azerothcore/bounties "Put money on issues or get paid for fixing them") [![StackOverflow](http://img.shields.io/badge/stackoverflow-azerothcore-blue.svg)](https://stackoverflow.com/questions/tagged/azerothcore?sort=newest "Ask / browse questions here") [![Discord](https://img.shields.io/discord/217589275766685707.svg)](https://discord.gg/gkt4y2x "Our community hub on Discord") diff --git a/.github/workflows/core_build.yml b/.github/workflows/core_build.yml index bb11074df..46decce54 100644 --- a/.github/workflows/core_build.yml +++ b/.github/workflows/core_build.yml @@ -82,36 +82,6 @@ jobs: - name: Run unit tests run: source ./apps/ci/ci-run-unit-tests.sh - mac-build: - strategy: - fail-fast: false - matrix: - os: - - macos-10.15 - # - macos-11.0 - runs-on: ${{ matrix.os }} - name: ${{ matrix.os }} - needs: [build] - if: github.repository == 'azerothcore/azerothcore-wotlk' && success() - steps: - - uses: actions/checkout@v2 - - name: Cache - uses: actions/cache@v1.1.2 - with: - path: ~/.ccache - key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }} - restore-keys: | - ccache:${{ matrix.os }}:${{ github.ref }} - ccache:${{ matrix.os }} - - name: Install latest bash - run: brew install bash - - name: Configure OS - run: source ./acore.sh install-deps - - name: Build - run: source ./apps/ci/mac/ci-compile.sh - - name: Run unit tests - run: source ./apps/ci/ci-run-unit-tests.sh - windows-build: strategy: fail-fast: false diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml new file mode 100644 index 000000000..9bfbbf97f --- /dev/null +++ b/.github/workflows/macos_build.yml @@ -0,0 +1,37 @@ +name: macos-build +on: + push: + branches: + - '**' # matches every branch + - '!coverity_scan' # excludes coverity_scan + pull_request: + +jobs: + macos-build: + strategy: + fail-fast: false + matrix: + os: + - macos-10.15 + # - macos-11.0 + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} + if: github.repository == 'azerothcore/azerothcore-wotlk' + steps: + - uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v2 + with: + path: ~/Library/Caches/ccache + key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }} + restore-keys: | + ccache:${{ matrix.os }}:${{ github.ref }} + ccache:${{ matrix.os }} + - name: Install latest bash + run: brew install bash + - name: Configure OS + run: source ./acore.sh install-deps + - name: Build + run: source ./apps/ci/mac/ci-compile.sh + - name: Run unit tests + run: source ./apps/ci/ci-run-unit-tests.sh