Skip to content

Commit

Permalink
Merge pull request #83 from carlopi/main
Browse files Browse the repository at this point in the history
Allow passing extra duckdb_tag and extension_tag internal options
  • Loading branch information
samansmink authored Sep 24, 2024
2 parents 93c90fc + ffc5315 commit 00831df
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/_extension_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ on:
required: false
type: boolean
default: false
# Optional tag the build extension should have -- this is easy to misuse, and subject to change, for internal use only
extension_tag:
required: false
type: string
default: ""
# Optional tag the referenced duckdb should have -- this is a easy to misuse, and subject to change, for internal use only
duckdb_tag:
required: false
type: string
default: ""
# DEPRECATED: use extra_toolchains instead
enable_rust:
required: false
Expand Down Expand Up @@ -121,6 +131,22 @@ jobs:
cd duckdb
git checkout ${{ inputs.duckdb_version }}
- name: Tag extension
if: ${{inputs.extension_tag != ''}}
run: |
git tag ${{ inputs.extension_tag }}
- name: Tag DuckDB extension
if: ${{inputs.duckdb_tag != '' && (inputs.duckdb_version == 'main' || inputs.duckdb_version[0] == 'v') }}
run: |
echo "When duckdb_tag is provied an explcit git ref is expected" && exit 1
- name: Tag DuckDB extension
if: ${{inputs.duckdb_tag != ''}}
run: |
cd duckdb
git tag ${{ inputs.duckdb_tag }}
- id: parse-matrices
run: |
python3 ${{ inputs.matrix_parse_script }} --input ./duckdb/.github/config/distribution_matrix.json --select_os linux --output linux_matrix.json --exclude "${{ inputs.exclude_archs }}" --pretty
Expand Down Expand Up @@ -188,6 +214,17 @@ jobs:
cd duckdb
git checkout ${{ inputs.duckdb_version }}
- name: Tag extension
if: ${{inputs.extension_tag != ''}}
run: |
git tag ${{ inputs.extension_tag }}
- name: Tag DuckDB extension
if: ${{inputs.duckdb_tag != ''}}
run: |
cd duckdb
git tag ${{ inputs.duckdb_tag }}
- uses: actions/checkout@v4
name: Checkout Extension CI tools
with:
Expand Down Expand Up @@ -319,6 +356,18 @@ jobs:
cd duckdb
git checkout ${{ inputs.duckdb_version }}
- name: Tag extension
if: ${{inputs.extension_tag != ''}}
run: |
git tag ${{ inputs.extension_tag }}
- name: Tag DuckDB extension
if: ${{inputs.duckdb_tag != ''}}
run: |
cd duckdb
git tag ${{ inputs.duckdb_tag }}
- name: Setup vcpkg
uses: lukka/[email protected]
with:
Expand Down Expand Up @@ -481,6 +530,18 @@ jobs:
cd duckdb
git checkout ${{ inputs.duckdb_version }}
- name: Tag extension
if: ${{inputs.extension_tag != ''}}
run: |
git tag ${{ inputs.extension_tag }}
- name: Tag DuckDB extension
if: ${{inputs.duckdb_tag != ''}}
run: |
cd duckdb
git tag ${{ inputs.duckdb_tag }}
- name: Setup Ccache
uses: hendrikmuhs/ccache-action@main
continue-on-error: true
Expand Down Expand Up @@ -565,6 +626,17 @@ jobs:
cd duckdb
git checkout ${{ inputs.duckdb_version }}
- name: Tag extension
if: ${{inputs.extension_tag != ''}}
run: |
git tag ${{ inputs.extension_tag }}
- name: Tag DuckDB extension
if: ${{inputs.duckdb_tag != ''}}
run: |
cd duckdb
git tag ${{ inputs.duckdb_tag }}
- uses: mymindstorm/setup-emsdk@v13
with:
version: 'latest'
Expand Down

0 comments on commit 00831df

Please sign in to comment.