Skip to content

Commit afc717a

Browse files
authored
Merge pull request #564 from samansmink/dont-use-extension-ci-tools-for-matrix
Dont use extension ci tools for matrix
2 parents 41af10e + 736526e commit afc717a

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/_extension_deploy.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
duckdb_version:
1919
required: true
2020
type: string
21+
# Extension CI tools version to use
22+
ci_tools_version:
23+
required: true
24+
type: string
2125
# ';' separated list of architectures to exclude, for example: 'linux_amd64;osx_arm64'
2226
exclude_archs:
2327
required: false
@@ -43,11 +47,6 @@ on:
4347
required: false
4448
type: string
4549
default: "./duckdb/scripts/extension-upload-single.sh"
46-
# Override the default matrix parse script with a custom script
47-
matrix_parse_script:
48-
required: false
49-
type: string
50-
default: "./duckdb/scripts/modify_distribution_matrix.py"
5150
repository:
5251
required: false
5352
type: string
@@ -65,21 +64,14 @@ jobs:
6564
steps:
6665
- uses: actions/checkout@v3
6766
with:
68-
repository: ${{ inputs.repository }}
69-
ref: ${{ inputs.ref }}
70-
fetch-depth: 0
71-
submodules: 'true'
72-
73-
- uses: actions/checkout@v3
74-
with:
75-
repository: 'duckdb/duckdb'
76-
ref: ${{ inputs.duckdb_version }}
77-
path: duckdb
67+
repository: 'duckdb/extension-ci-tools'
68+
ref: ${{ inputs.ci_tools_version }}
69+
path: extension-ci-tools
7870
fetch-depth: 0
7971

8072
- id: parse-matrices
8173
run: |
82-
python3 ${{ inputs.matrix_parse_script }} --input ./extension-ci-tools/config/distribution_matrix.json --deploy_matrix --output deploy_matrix.json --exclude "${{ inputs.exclude_archs }}" --pretty
74+
python3 ./extension-ci-tools/scripts/modify_distribution_matrix.py --input ./extension-ci-tools/config/distribution_matrix.json --deploy_matrix --output deploy_matrix.json --exclude "${{ inputs.exclude_archs }}" --pretty
8375
deploy_matrix="`cat deploy_matrix.json`"
8476
echo deploy_matrix=$deploy_matrix >> $GITHUB_OUTPUT
8577
echo `cat $GITHUB_OUTPUT`

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ jobs:
139139
with:
140140
deploy_latest: true
141141
duckdb_version: ${{ inputs.duckdb_version || 'v1.3.2' }}
142+
ci_tools_version: 'main'
142143
exclude_archs: ${{ needs.prepare.outputs.COMMUNITY_EXTENSION_EXCLUDE_PLATFORMS }}
143144
extension_name: ${{ needs.prepare.outputs.COMMUNITY_EXTENSION_NAME }}
144145
repository: ${{ needs.prepare.outputs.COMMUNITY_EXTENSION_GITHUB }}

0 commit comments

Comments
 (0)