From af021ab30af9d9e915d5e68b81f9072c407c48ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefano=20Borz=C3=AC?= Date: Mon, 21 Sep 2026 00:14:42 +0200 Subject: [PATCH] feat(CI): let the linux build add extra data files before the dry run (#27735) --- .github/actions/linux-build/action.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/actions/linux-build/action.yml b/.github/actions/linux-build/action.yml index ea448199e0..1999a68a06 100644 --- a/.github/actions/linux-build/action.yml +++ b/.github/actions/linux-build/action.yml @@ -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