mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
chore(CI): move macos build to separate workflow (#5416)
* chore(CI): move macos build to separate workflow * chore(README): add status badge * fix(CI): remove needs dependency * fix(CI/macOS): update ccache path Co-Authored-By: Rochet2 <rochet2@post.com> * fix(CI): remove space Co-authored-by: Rochet2 <rochet2@post.com>
This commit is contained in:
1
.github/README.md
vendored
1
.github/README.md
vendored
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[](https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk)
|
[](https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk)
|
||||||
[](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Acore-build+branch%3Amaster+event%3Apush)
|
[](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Acore-build+branch%3Amaster+event%3Apush)
|
||||||
|
[](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Amacos-build+branch%3Amaster+event%3Apush)
|
||||||
[](https://www.bountysource.com/teams/azerothcore/bounties "Put money on issues or get paid for fixing them")
|
[](https://www.bountysource.com/teams/azerothcore/bounties "Put money on issues or get paid for fixing them")
|
||||||
[](https://stackoverflow.com/questions/tagged/azerothcore?sort=newest "Ask / browse questions here")
|
[](https://stackoverflow.com/questions/tagged/azerothcore?sort=newest "Ask / browse questions here")
|
||||||
[](https://discord.gg/gkt4y2x "Our community hub on Discord")
|
[](https://discord.gg/gkt4y2x "Our community hub on Discord")
|
||||||
|
|||||||
30
.github/workflows/core_build.yml
vendored
30
.github/workflows/core_build.yml
vendored
@@ -82,36 +82,6 @@ jobs:
|
|||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: source ./apps/ci/ci-run-unit-tests.sh
|
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:
|
windows-build:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
37
.github/workflows/macos_build.yml
vendored
Normal file
37
.github/workflows/macos_build.yml
vendored
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user