Skip to content

Commit

Permalink
Merge pull request #61 from samansmink/add-custom-toolchain-script
Browse files Browse the repository at this point in the history
Add custom toolchain script
  • Loading branch information
samansmink authored Aug 27, 2024
2 parents b07a1a6 + d6bcda4 commit 638a972
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/TestCITools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
override_ci_tools_repository: ${{ github.repository }}
override_ci_tools_ref: ${{ github.sha }}
extra_toolchains: 'parser_tools;fortran;omp'
custom_toolchain_script: true

delta-extension-main:
name: Rust builds (using Delta extension)
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/_extension_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ on:
required: false
type: string
default: ""
# If set, the setup will look for a script in `./scripts/custom-toolchain-script.sh` to run
custom_toolchain_script:
required: false
type: boolean
default: false
# DEPRECATED: use extra_toolchains instead
enable_rust:
required: false
Expand Down Expand Up @@ -296,6 +301,15 @@ jobs:
echo "OPENSSL_DIR=`pwd`/build/release/vcpkg_installed/${{ matrix.vcpkg_triplet }}" >> $GITHUB_ENV
echo "OPENSSL_USE_STATIC_LIBS=true" >> $GITHUB_ENV
###
# Custom toolchain script
###
- name: Run custom toolchain script
if: ${{ inputs.custom_toolchain_script }}
shell: bash
run: |
bash scripts/setup-custom-toolchain.sh
###
# Building & testing
###
Expand Down Expand Up @@ -415,6 +429,12 @@ jobs:
echo "CPPFLAGS=-I/opt/homebrew/opt/libomp/include" >> $GITHUB_ENV
echo "CXXFLAGS=-I/opt/homebrew/opt/libomp/include" >> $GITHUB_ENV
- name: Run custom toolchain script
if: ${{ inputs.custom_toolchain_script }}
shell: bash
run: |
bash scripts/setup-custom-toolchain.sh
- name: Build extension
shell: bash
env:
Expand Down Expand Up @@ -519,6 +539,12 @@ jobs:
vcpkgGitCommitId: ${{ inputs.vcpkg_commit }}
vcpkgGitURL: ${{ inputs.vcpkg_url }}

- name: Run custom toolchain script
if: ${{ inputs.custom_toolchain_script }}
shell: bash
run: |
bash scripts/setup-custom-toolchain.sh
- name: Build & test extension
env:
DUCKDB_PLATFORM: ${{ matrix.duckdb_arch }}
Expand Down Expand Up @@ -598,6 +624,12 @@ jobs:
with:
key: ${{ github.job }}-${{ matrix.duckdb_arch }}

- name: Run custom toolchain script
if: ${{ inputs.custom_toolchain_script }}
shell: bash
run: |
bash scripts/setup-custom-toolchain.sh
- name: Build Wasm module
run: |
make ${{ matrix.duckdb_arch }}
Expand Down

0 comments on commit 638a972

Please sign in to comment.