Skip to content

Commit

Permalink
fix inside docker env var
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Nov 6, 2024
1 parent f180357 commit 598e6e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/_extension_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ jobs:
echo "OPENSSL_USE_STATIC_LIBS=true" >> docker_env.txt
echo "DUCKDB_PLATFORM=${{ matrix.duckdb_arch }}" >> docker_env.txt
echo "DUCKDB_GIT_VERSION=${{ inputs.duckdb_version }}" >> docker_env.txt
echo "LINUX_CI_IN_DOCKER=1" >> docker_env.txt
echo "TOOLCHAIN_FLAGS=${{ matrix.duckdb_arch == 'linux_arm64' && '-DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_Fortran_COMPILER=aarch64-linux-gnu-gfortran' || '' }}" >> docker_env.txt
- name: Generate timestamp for Ccache entry
Expand Down Expand Up @@ -309,29 +310,22 @@ jobs:
- name: Run configure CI (inside Docker)
shell: bash
env:
LINUX_CI_IN_DOCKER: 1
run: |
docker run --env-file=docker_env.txt -v `pwd`:/duckdb_build_dir -v `pwd`/ccache_dir:/ccache_dir duckdb/${{ matrix.duckdb_arch }} make configure_ci
- name: Build extension (inside Docker)
env:
LINUX_CI_IN_DOCKER: 1
run: |
docker run --env-file=docker_env.txt -v `pwd`:/duckdb_build_dir -v `pwd`/ccache_dir:/ccache_dir duckdb/${{ matrix.duckdb_arch }} make release
- name: Test extension (inside docker)
if: ${{ matrix.duckdb_arch != 'linux_arm64' && inputs.skip_tests == false }}
env:
LINUX_CI_IN_DOCKER: 1
run: |
docker run --env-file=docker_env.txt -v `pwd`:/duckdb_build_dir -v `pwd`/ccache_dir:/ccache_dir duckdb/${{ matrix.duckdb_arch }} make test_release
- name: Test extension (outside docker)
if: ${{ matrix.duckdb_arch != 'linux_arm64' && inputs.skip_tests == false }}
env:
DUCKDB_GIT_VERSION: ${{ inputs.duckdb_version }}
LINUX_CI_IN_DOCKER: 1
run: |
make test_release
Expand Down
5 changes: 3 additions & 2 deletions duckdb_extension_rs.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
#
# Inputs
# EXTENSION_NAME : name of the extension (lower case)
# DUCKDB_VERSION : the minimum version of DuckDB that the extension supports

.PHONY: clean test_debug test_release test debug release install_dev_dependencies all
.PHONY: clean test_debug test_release test debug release install_dev_dependencies all platform

#############################################
### Platform dependent config
Expand Down Expand Up @@ -185,7 +186,7 @@ test_release_internal:
@echo "Running RELEASE tests.."
@$(TEST_RUNNER_RELEASE)
test_debug_internal:
@echo "Running DEBUG tests.."xw
@echo "Running DEBUG tests.."
@$(TEST_RUNNER_DEBUG)

tests_skipped:
Expand Down

0 comments on commit 598e6e6

Please sign in to comment.