fix(ci): update windows tarball to put dlls next to influxdb3.exe

References:
- https://github.com/influxdata/influxdb/issues/26113
jdstrand/fix-windows-targz
Jamie Strandboge 2025-03-13 16:41:00 -05:00
parent 941e0e0f15
commit c4bbff59bf
No known key found for this signature in database
1 changed files with 19 additions and 1 deletions

View File

@ -404,11 +404,29 @@ jobs:
echo "Running: /usr/local/bin/rcodesign sign '${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3'"
/usr/local/bin/rcodesign sign "${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3"
- run:
name: tar and gzip build artifacts
name: tar build artifacts
command: |
mkdir -p artifacts
tar --ignore-failed-read -cvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "${PWD}/target/<< parameters.target >>/<< parameters.profile >>" influxdb3{,.exe}
tar --ignore-failed-read -rvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "/tmp/workspace/python-artifacts/<< parameters.target >>" python
- when:
condition:
equal: [ << parameters.target >>, x86_64-pc-windows-gnu ]
steps:
- run:
# Windows doesn't have a concept of RPATH; instead either PATH
# needs to be set ahead of time (by the user; in a .bat script)
# or the required DLLs need to be in the same directory as the
# executable. For now, copy the *.dll files from the
# python directory up next to the executable (we copy so that
# the python executable in the python directory can still find
# them). influxdb#26113
name: tar Windows DLLs next to influxdb3.exe
command: |
tar --ignore-failed-read -rvf "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar" -C "/tmp/workspace/python-artifacts/<< parameters.target >>/python" $(find "/tmp/workspace/python-artifacts/<< parameters.target >>/python" -maxdepth 1 -name *.dll -printf '%f\n')
- run:
name: gzip build artifacts
command: |
gzip "${PWD}/artifacts/influxdb3-core_<< parameters.target >>.tar"
- store_artifacts:
path: artifacts