Data Generator: bump Iceberg version, improve documentation #48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: [push, pull_request,repository_dispatch] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
windows: | |
name: Release | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
# Add commits/tags to build against other DuckDB versions | |
duckdb_version: [ '<submodule_version>' ] | |
vcpkg_version: [ '2023.04.15' ] | |
vcpkg_triplet: ['x64-windows-static-md'] | |
env: | |
VCPKG_TARGET_TRIPLET: ${{ matrix.vcpkg_triplet }} | |
GEN: Ninja | |
VCPKG_ROOT: ${{ github.workspace }}\vcpkg | |
VCPKG_TOOLCHAIN_PATH: ${{ github.workspace }}\vcpkg\scripts\buildsystems\vcpkg.cmake | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
- name: Setup vcpkg | |
uses: lukka/[email protected] | |
with: | |
vcpkgGitCommitId: 501db0f17ef6df184fcdbfbe0f87cde2313b6ab1 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- name: Checkout DuckDB to version | |
# Add commits/tags to build against other DuckDB versions | |
if: ${{ matrix.duckdb_version != '<submodule_version>'}} | |
run: | | |
cd duckdb | |
git checkout ${{ matrix.duckdb_version }} | |
- name: Build extension | |
run: | | |
make release | |
# TODO: Windows tests currently failing due to path separator issue. | |
# - name: Test Extension | |
# shell: bash | |
# run: | | |
# build/release/test/Release/unittest.exe --test-dir . "*.test" | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: windows-extension | |
path: | | |
build/release/extension/iceberg/iceberg.duckdb_extension | |
- name: error log | |
if: failure() | |
shell: bash | |
run: cat D:/a/duckdb_iceberg/duckdb_iceberg/vcpkg/buildtrees/avro-cpp/install-x64-windows-static-md-dbg-out.log | |
- name: Deploy | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.S3_DEPLOY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_DEPLOY_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.S3_REGION }} | |
BUCKET_NAME: ${{ secrets.S3_BUCKET }} | |
DUCKDB_EXTENSION_SIGNING_PK: ${{ secrets.DUCKDB_EXTENSION_SIGNING_KEY }} | |
run: | | |
cd duckdb | |
git fetch --tags | |
export DUCKDB_VERSION=`git tag --points-at HEAD` | |
export DUCKDB_VERSION=${DUCKDB_VERSION:=`git log -1 --format=%h`} | |
cd .. | |
if [[ "$AWS_ACCESS_KEY_ID" == "" ]] ; then | |
echo 'No key set, skipping' | |
elif [[ "$GITHUB_REF" =~ ^(refs/tags/v.+)$ ]] ; then | |
python -m pip install awscli | |
./scripts/extension-upload.sh iceberg ${{ github.ref_name }} $DUCKDB_VERSION windows_amd64 $BUCKET_NAME true | |
elif [[ "$GITHUB_REF" =~ ^(refs/heads/main)$ ]] ; then | |
python -m pip install awscli | |
./scripts/extension-upload.sh iceberg `git log -1 --format=%h` $DUCKDB_VERSION windows_amd64 $BUCKET_NAME false | |
fi |