mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
feat(CI): let the linux build add extra data files before the dry run (#27735)
This commit is contained in:
@@ -36,6 +36,13 @@ inputs:
|
||||
description: Flag to continue build after errors
|
||||
required: false
|
||||
type: boolean
|
||||
extra-data-dir:
|
||||
default: ''
|
||||
description: >-
|
||||
Folder laid out like the server data dir (dbc/, maps/, ...), copied over the client data
|
||||
before the dry run
|
||||
required: false
|
||||
type: string
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@@ -187,6 +194,21 @@ runs:
|
||||
run: |
|
||||
git clone --depth 1 --branch master --single-branch https://github.com/ac-data/ac-data.git "$AC_DATA_DIR"
|
||||
|
||||
- name: Copy extra data files
|
||||
if: inputs.extra-data-dir != ''
|
||||
shell: bash
|
||||
env:
|
||||
EXTRA_DATA_DIR: ${{ inputs.extra-data-dir }}
|
||||
run: |
|
||||
if [[ ! -d "$EXTRA_DATA_DIR" ]]; then
|
||||
echo "extra-data-dir '$EXTRA_DATA_DIR' is not a directory"
|
||||
exit 1
|
||||
fi
|
||||
cp -r "$EXTRA_DATA_DIR/." "$AC_DATA_DIR/"
|
||||
for dir in "$EXTRA_DATA_DIR"/*/; do
|
||||
echo "$(basename "$dir"): $(find "$dir" -type f | wc -l) files"
|
||||
done
|
||||
|
||||
- name: Start MySQL container
|
||||
shell: bash
|
||||
run: sudo systemctl start mysql.service
|
||||
|
||||
Reference in New Issue
Block a user