|
6 | 6 | type: string |
7 | 7 | description: The DuckDB SHA to build against |
8 | 8 | required: true |
| 9 | + commit_duckdb_sha: |
| 10 | + type: boolean |
| 11 | + description: Set (commit) the DuckDB submodule to the given SHA |
| 12 | + default: false |
9 | 13 | force_version: |
10 | 14 | type: string |
11 | 15 | description: Force version (vX.Y.Z-((rc|post)N)) |
|
14 | 18 | type: boolean |
15 | 19 | description: Publish to S3 |
16 | 20 | required: true |
17 | | - default: false |
| 21 | + default: true |
| 22 | + |
| 23 | +defaults: |
| 24 | + run: |
| 25 | + shell: bash |
18 | 26 |
|
19 | 27 | jobs: |
| 28 | + commit_duckdb_submodule_sha: |
| 29 | + name: Commit the submodule to the given DuckDB sha |
| 30 | + if: ${{ inputs.commit_duckdb_sha }} |
| 31 | + runs-on: ubuntu-24.04 |
| 32 | + steps: |
| 33 | + |
| 34 | + - name: Checkout DuckDB Python |
| 35 | + uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + ref: ${{ github.ref }} |
| 38 | + fetch-depth: 0 |
| 39 | + submodules: true |
| 40 | + |
| 41 | + - name: Checkout DuckDB |
| 42 | + run: | |
| 43 | + cd external/duckdb |
| 44 | + git fetch origin |
| 45 | + git checkout ${{ inputs.duckdb_git_ref }} |
| 46 | +
|
| 47 | + - name: Commit and push new submodule ref |
| 48 | + # see https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-to-a-pr-using-the-built-in-token |
| 49 | + run: | |
| 50 | + git config user.name "github-actions[bot]" |
| 51 | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
| 52 | + git add external/duckdb |
| 53 | + git commit -m "Update submodule ref" |
| 54 | + git push |
| 55 | +
|
20 | 56 | externally_triggered_build: |
21 | 57 | name: Build and test releases |
22 | | - uses: ./.github/workflows/pypi_packaging.yml |
| 58 | + uses: ./.github/workflows/packaging.yml |
23 | 59 | with: |
24 | 60 | minimal: false |
25 | 61 | testsuite: all |
|
51 | 87 | # semantics: if a version is forced then we upload into a folder by the version name, otherwise we upload |
52 | 88 | # into a folder that is named <run id>-<run-attempt>. Only the latter will be discovered be |
53 | 89 | # upload_to_pypi.yml. |
54 | | - shell: bash |
55 | 90 | run: | |
56 | 91 | FOLDER="${{ inputs.force_version != '' && inputs.force_version || format('{0}-{1}', github.run_id, github.run_attempt) }}" |
57 | 92 | aws s3 cp artifacts s3://duckdb-staging/${{ github.repository }}/${FOLDER}/ --recursive |
0 commit comments