Fix continuous integration workflow

This commit is contained in:
Yunfan Li
2024-09-12 22:52:49 +08:00
parent 9973151927
commit 7e8c2d2887
4 changed files with 10 additions and 20 deletions

View File

@@ -16,15 +16,15 @@ jobs:
matrix: matrix:
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds # the result of the matrix will be the combination of all attributes, so we get os*compiler builds
include: include:
- os: ubuntu-20.04 - os: ubuntu-22.04
c_compiler: clang c_compiler: clang
cpp_compiler: clang++ cpp_compiler: clang++
build_type: Release build_type: Release
- os: ubuntu-20.04 - os: ubuntu-22.04
c_compiler: gcc c_compiler: gcc
cpp_compiler: g++ cpp_compiler: g++
build_type: Release build_type: Release
- os: ubuntu-latest - os: ubuntu-24.04
c_compiler: gcc c_compiler: gcc
cpp_compiler: g++ cpp_compiler: g++
build_type: Release build_type: Release

View File

@@ -16,15 +16,15 @@ jobs:
matrix: matrix:
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds # the result of the matrix will be the combination of all attributes, so we get os*compiler builds
include: include:
- os: ubuntu-20.04 - os: ubuntu-22.04
c_compiler: clang c_compiler: clang
cpp_compiler: clang++ cpp_compiler: clang++
build_type: Release build_type: Release
- os: ubuntu-20.04 - os: ubuntu-22.04
c_compiler: gcc c_compiler: gcc
cpp_compiler: g++ cpp_compiler: g++
build_type: Release build_type: Release
- os: ubuntu-latest - os: ubuntu-24.04
c_compiler: gcc c_compiler: gcc
cpp_compiler: g++ cpp_compiler: g++
build_type: Release build_type: Release

View File

@@ -1,10 +1,9 @@
name: macos-build name: macos-build
on: on:
push: push:
branches: branches: [ "Playerbot" ]
- 'master'
pull_request: pull_request:
types: ['labeled', 'opened', 'synchronize', 'reopened'] branches: [ "Playerbot" ]
concurrency: concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -19,10 +18,6 @@ jobs:
- macos-12 - macos-12
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} name: ${{ matrix.os }}
if: |
github.repository == 'azerothcore/azerothcore-wotlk'
&& !github.event.pull_request.draft
&& (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Cache - name: Cache

View File

@@ -1,10 +1,9 @@
name: windows-build name: windows-build
on: on:
push: push:
branches: branches: [ "Playerbot" ]
- 'master'
pull_request: pull_request:
types: ['labeled', 'opened', 'synchronize', 'reopened'] branches: [ "Playerbot" ]
concurrency: concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }}) group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -20,10 +19,6 @@ jobs:
name: ${{ matrix.os }} name: ${{ matrix.os }}
env: env:
BOOST_ROOT: C:\local\boost_1_82_0 BOOST_ROOT: C:\local\boost_1_82_0
if: |
github.repository == 'liyunfan1223/azerothcore-wotlk'
&& !github.event.pull_request.draft
&& (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'run-build') || github.event.label.name == 'run-build')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: ccache - name: ccache