Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/actions/build_extensions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,27 @@ runs:
python3 scripts/get_test_list.py --file-contains 'require ' --list '"*.test"' > test.list
python3 scripts/get_test_list.py --file-contains 'require-env LOCAL_EXTENSION_REPO' --list '"*.test"' >> test.list
${{ inputs.unittest_script }} '-f test.list'
rm -rf build/release/extension
mv build/extension_tmp build/release/extension

- name: Run tests with auto loading with VS2019 C++ stdlib
if: ${{ inputs.run_autoload_tests == '1' && inputs.vcpkg_target_triplet == 'x64-windows-static-md' }}
shell: bash
env:
LOCAL_EXTENSION_REPO: ${{ inputs.run_autoload_tests == '1' && github.workspace || ''}}
run: |
choco install wget -y --no-progress
cd ${{ inputs.build_dir }}
TEST_RUNNER_DIR=./build/release/test/Release
if [ ! -f ${TEST_RUNNER_DIR}/unittest.exe ]; then
echo "Invalid unit tests runner dir: ${TEST_RUNNER_DIR}, check 'inputs.unittest_script' argument"
exit 1
fi
wget -P ${TEST_RUNNER_DIR} https://blobs.duckdb.org/ci/msvcp140.dll
ls ${TEST_RUNNER_DIR}
# test.list is generated on the previous step
${{ inputs.unittest_script }} '-f test.list'
rm ${TEST_RUNNER_DIR}/msvcp140.dll
rm -rf ./build/release/extension
mv ./build/extension_tmp ./build/release/extension

- name: Deploy
if: ${{ inputs.deploy_as != '' }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ jobs:
if: ${{ inputs.skip_tests != 'true' }}
run: |
choco install wget -y --no-progress
wget -P test/Release https://blobs.duckdb.org/ci/msvcp140.dll
test/Release/unittest.exe
rm test/Release/msvcp140.dll
wget -P ./test/Release https://blobs.duckdb.org/ci/msvcp140.dll
ls ./test/Release
./test/Release/unittest.exe
rm ./test/Release/msvcp140.dll

- name: Tools Test
shell: bash
Expand Down
Loading