Update macos_build.yml

This commit is contained in:
Yunfan Li
2024-03-05 08:22:05 +08:00
committed by GitHub
parent 2c17ac1442
commit f6d4915f17

View File

@@ -1,38 +1,38 @@
name: windows-build # name: macos-build
on: # on:
push: # push:
branches: [ "master" ] # branches: [ "master" ]
pull_request: # pull_request:
branches: [ "master" ] # branches: [ "master" ]
jobs: # jobs:
macos-build: # macos-build:
strategy: # strategy:
fail-fast: false # fail-fast: false
matrix: # matrix:
os: # os:
- macos-12 # - macos-12
runs-on: ${{ matrix.os }} # runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} # name: ${{ matrix.os }}
steps: # steps:
- name: Checkout AzerothCore # - name: Checkout AzerothCore
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
repository: 'liyunfan1223/azerothcore-wotlk' # repository: 'liyunfan1223/azerothcore-wotlk'
ref: 'Playerbot' # ref: 'Playerbot'
- name: Clone Playerbot Module # - name: Clone Playerbot Module
run: git clone --depth=1 --branch=master https://github.com/liyunfan1223/mod-playerbots.git modules/mod-playerbots # run: git clone --depth=1 --branch=master https://github.com/liyunfan1223/mod-playerbots.git modules/mod-playerbots
- name: Cache # - name: Cache
uses: actions/cache@v3 # uses: actions/cache@v3
with: # with:
path: ~/Library/Caches/ccache # path: ~/Library/Caches/ccache
key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }} # key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }}
restore-keys: | # restore-keys: |
ccache:${{ matrix.os }}:${{ github.ref }} # ccache:${{ matrix.os }}:${{ github.ref }}
ccache:${{ matrix.os }} # ccache:${{ matrix.os }}
- name: Install latest bash # - name: Install latest bash
run: brew install bash # run: brew install bash
- name: Configure OS # - name: Configure OS
run: source ./acore.sh install-deps # run: source ./acore.sh install-deps
- name: Build # - name: Build
run: source ./apps/ci/mac/ci-compile.sh # run: source ./apps/ci/mac/ci-compile.sh