Skip to content

Commit

Permalink
Source verification ensures using the original user in tmp directory (#…
Browse files Browse the repository at this point in the history
…110)

Closes GH-108
  • Loading branch information
kou authored Sep 11, 2023
1 parent e4233a7 commit 849661e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ jobs:
- name: Prepare
run: |
ci/scripts/prepare-${{ matrix.os }}.sh ${{ matrix.postgresql-version }}
- name: Install Apache Arrow Flight SQL adapter
run: |
setup_args=(
"--prefix=/tmp/local"
"-Dbenchmark=true"
"-Dpostgresql_dir=$(pg_config --bindir)/.."
)
if [ ${{ matrix.os }} = "macos" ]; then
setup_args+=("--pkg-config-path=$(brew --prefix libpq)/lib/pkgconfig")
fi
meson setup "${setup_args[@]}" build
meson compile -C build
if [ ${{ matrix.os }} = "ubuntu" ]; then
sudo meson install -C build
else
meson install -C build
fi
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
Expand Down
3 changes: 2 additions & 1 deletion dev/release/verify-rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ test_source_distribution() {
fi

meson setup \
--prefix="${PWD}/install" \
--prefix="${ARROW_TMPDIR}/install" \
-Dpostgresql_dir="$(pg_config --bindir)/.." \
${ARROW_FLIGHT_SQL_POSTGRESQL_MESON_SETUP_ARGS:-} \
build
Expand All @@ -227,6 +227,7 @@ test_source_distribution() {
Linux-/usr/*)
if type sudo > /dev/null 2>&1; then
sudo meson install -C build
sudo chown -R "${USER}:" "${ARROW_TMPDIR}/install"
else
meson install -C build
fi
Expand Down

0 comments on commit 849661e

Please sign in to comment.