Parse schema from table metadata #41
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: Linux | |
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: | |
linux: | |
name: Linux Release | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
strategy: | |
matrix: | |
# Add commits/tags to build against other DuckDB versions | |
duckdb_version: [ '<submodule_version>' ] | |
arch: ['linux_amd64', 'linux_arm64', 'linux_amd64_gcc4'] | |
vcpkg_version: [ '2023.04.15' ] | |
include: | |
- arch: 'linux_amd64_gcc4' | |
container: 'quay.io/pypa/manylinux2014_x86_64' | |
vcpkg_triplet: 'x64-linux' | |
- arch: 'linux_amd64' | |
container: 'ubuntu:18.04' | |
vcpkg_triplet: 'x64-linux' | |
- arch: 'linux_arm64' | |
container: 'ubuntu:18.04' | |
vcpkg_triplet: 'arm64-linux' | |
env: | |
VCPKG_TARGET_TRIPLET: ${{ matrix.vcpkg_triplet }} | |
GEN: Ninja | |
VCPKG_TOOLCHAIN_PATH: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | |
steps: | |
- name: Install required ubuntu packages | |
if: ${{ matrix.arch == 'linux_amd64' || matrix.arch == 'linux_arm64' }} | |
run: | | |
apt-get update -y -qq | |
apt-get install -y -qq software-properties-common | |
add-apt-repository ppa:git-core/ppa | |
apt-get update -y -qq | |
apt-get install -y -qq ninja-build make gcc-multilib g++-multilib libssl-dev wget openjdk-8-jdk zip maven unixodbc-dev libc6-dev-i386 lib32readline6-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip build-essential checkinstall libffi-dev curl libz-dev openssh-client | |
apt-get install -y -qq tar pkg-config | |
- name: Install Git 2.18.5 | |
if: ${{ matrix.arch == 'linux_amd64' || matrix.arch == 'linux_arm64' }} | |
run: | | |
wget https://github.com/git/git/archive/refs/tags/v2.18.5.tar.gz | |
tar xvf v2.18.5.tar.gz | |
cd git-2.18.5 | |
make | |
make prefix=/usr install | |
git --version | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
- name: Checkout DuckDB to version | |
if: ${{ matrix.duckdb_version != '<submodule_version>'}} | |
run: | | |
cd duckdb | |
git checkout ${{ matrix.duckdb_version }} | |
- name: Setup ManyLinux2014 | |
if: ${{ matrix.arch == 'linux_amd64_gcc4' }} | |
run: | | |
./duckdb/scripts/setup_manylinux2014.sh general aws-cli ccache ssh openssl python_alias | |
- name: Setup Ubuntu | |
if: ${{ matrix.arch == 'linux_amd64' || matrix.arch == 'linux_arm64' }} | |
uses: ./duckdb/.github/actions/ubuntu_18_setup | |
with: | |
aarch64_cross_compile: 1 | |
- name: Setup vcpkg | |
uses: lukka/[email protected] | |
with: | |
vcpkgGitCommitId: a42af01b72c28a8e1d7b48107b33e4f286a55ef6 | |
# Build extension | |
- name: Build extension | |
env: | |
GEN: ninja | |
STATIC_LIBCPP: 1 | |
CC: ${{ matrix.arch == 'linux_arm64' && 'aarch64-linux-gnu-gcc' || '' }} | |
CXX: ${{ matrix.arch == 'linux_arm64' && 'aarch64-linux-gnu-g++' || '' }} | |
run: | | |
make release | |
- name: Test extension | |
if: ${{ matrix.arch == 'linux_amd64_gcc4' || matrix.arch == 'linux_amd64' }} | |
run: | | |
make test | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{matrix.arch}}-extensions | |
path: | | |
build/release/extension/iceberg/iceberg.duckdb_extension | |
- 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: | | |
git config --global --add safe.directory '*' | |
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 | |
python3 -m pip install pip awscli | |
./scripts/extension-upload.sh iceberg ${{ github.ref_name }} $DUCKDB_VERSION ${{matrix.arch}} $BUCKET_NAME true | |
elif [[ "$GITHUB_REF" =~ ^(refs/heads/main)$ ]] ; then | |
python3 -m pip install pip awscli | |
./scripts/extension-upload.sh iceberg `git log -1 --format=%h` $DUCKDB_VERSION ${{matrix.arch}} $BUCKET_NAME false | |
fi |