Skip to content

Commit

Permalink
try using extension ci tools
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Jul 11, 2024
1 parent 2331528 commit f3482f8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 19 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/TestCITools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
override_repository: duckdb/extension-template
override_ref: main
duckdb_version: v1.0.0
override_ci_tools_ref: ${{ github.sha }}
override_ci_tools_repository: ${{github.event.action == 'pull_request' && github.event.pull_request.head.sha || github.sha}}
override_ci_tools_ref: ${{github.event.action == 'pull_request' && github.event.pull_request.head.sha || github.sha}}

delta-extension-main:
name: Rust builds (using Delta extension)
Expand All @@ -30,6 +31,6 @@ jobs:
enable_rust: true
override_repository: duckdb/duckdb_delta
override_ref: main
override_ci_tools_ref: ${{ github.sha }}
override_ci_tools_ref: ${{github.event.action == 'pull_request' && github.event.pull_request.head.sha || github.sha}}
duckdb_version: v1.0.0
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools'
52 changes: 35 additions & 17 deletions .github/workflows/_extension_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,17 @@ on:
required: false
type: string
default: ""
# The ref for which to use the CI tools
# Override the repo for the CI tools (for testing CI tools itself)
override_ci_tools_repository:
required: false
type: string
default: ""
# Override the ref for the CI tools (for testing CI tools itself)
override_ci_tools_ref:
required: false
type: string
default: ""

jobs:
generate_matrix:
name: Generate matrix
Expand Down Expand Up @@ -219,11 +225,14 @@ jobs:
fetch-depth: 0
submodules: 'true'

- name: Checkout Extension CI tools
- uses: actions/checkout@v4
name: Checkout Extension CI tools
if: ${{inputs.override_ci_tools_ref != ''}}
run: |
cd extension-ci-tools
git checkout ${{ inputs.override_ci_tools_ref }}
with:
path: 'extension-ci-tools'
ref: ${{ inputs.override_ci_tools_ref }}
repository: ${{ inputs.override_ci_tools_repository }}
fetch-depth: 0

- name: Checkout DuckDB to version
run: |
Expand Down Expand Up @@ -330,11 +339,14 @@ jobs:
with:
python-version: '3.11'

- name: Checkout Extension CI tools
- uses: actions/checkout@v4
name: Checkout Extension CI tools
if: ${{inputs.override_ci_tools_ref != ''}}
run: |
cd extension-ci-tools
git checkout ${{ inputs.override_ci_tools_ref }}
with:
path: 'extension-ci-tools'
ref: ${{ inputs.override_ci_tools_ref }}
repository: ${{ inputs.override_ci_tools_repository }}
fetch-depth: 0

- name: Checkout DuckDB to version
run: |
Expand Down Expand Up @@ -424,11 +436,14 @@ jobs:
update-rtools: true
rtools-version: '42' # linker bug in 43

- name: Checkout Extension CI tools
- uses: actions/checkout@v4
name: Checkout Extension CI tools
if: ${{inputs.override_ci_tools_ref != ''}}
run: |
cd extension-ci-tools
git checkout ${{ inputs.override_ci_tools_ref }}
with:
path: 'extension-ci-tools'
ref: ${{ inputs.override_ci_tools_ref }}
repository: ${{ inputs.override_ci_tools_repository }}
fetch-depth: 0

- name: Checkout DuckDB to version
run: |
Expand Down Expand Up @@ -489,11 +504,14 @@ jobs:
fetch-depth: 0
submodules: 'true'

- name: Checkout Extension CI tools
- uses: actions/checkout@v4
name: Checkout Extension CI tools
if: ${{inputs.override_ci_tools_ref != ''}}
run: |
cd extension-ci-tools
git checkout ${{ inputs.override_ci_tools_ref }}
with:
path: 'extension-ci-tools'
ref: ${{ inputs.override_ci_tools_ref }}
repository: ${{ inputs.override_ci_tools_repository }}
fetch-depth: 0

- name: Checkout DuckDB to version
run: |
Expand Down

0 comments on commit f3482f8

Please sign in to comment.