Files
azerothcore-wotlk/.github/workflows/tools_build.yml
Kitzunu 4a25ac665d chore(CI): Make some changes (#17861)
* chore(CI): Make some changes. Less CI's maybe better...

* pendingsql

* FORK TEST - TO BE REVERTED

* changes

* test

* fix

* Revert "FORK TEST - TO BE REVERTED"

This reverts commit 875bc281c5a355cce2ddd8015484e256dbc185cf.

* rename workflow

* rename workflow

* rename workflow

* rename workflow

* I argue windows don't need dry runs

* maybe mac wants to be alive. who knows. When do we drop mac support really...?
2023-11-26 17:27:40 +01:00

52 lines
1.6 KiB
YAML

name: tools
on:
push:
branches:
- 'master'
pull_request:
concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds
os: [ubuntu-20.04]
compiler: [clang]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.compiler }}
env:
COMPILER: ${{ matrix.compiler }}
if: |
github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
&& (
contains(github.event.pull_request.labels.*.name, 'run-build')
|| github.event.label.name == 'run-build')
)
steps:
- uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v3
env:
cache-name: cache-tools
with:
path: var/ccache
key: ${{ env.cache-name }}-${{ matrix.os }}-${{ matrix.compiler }}-${{ github.ref }}-${{ github.sha }}
restore-keys: |
${{ env.cache-name }}-${{ matrix.os }}-${{ matrix.compiler }}-${{ github.ref }}-
${{ env.cache-name }}-${{ matrix.os }}-${{ matrix.compiler }}-
${{ env.cache-name }}-${{ matrix.os }}-
- name: Configure OS
run: source ./acore.sh install-deps
env:
CONTINUOUS_INTEGRATION: true
- name: Create conf/config.sh
run: source ./apps/ci/ci-conf-tools.sh
- name: Build
run: source ./apps/ci/ci-compile.sh