@@ -187,107 +187,3 @@ jobs:
187187 local \
188188 package/${PACKAGE}/${TASK_NAMESPACE}/repositories
189189 popd
190-
191- verify-source :
192- name : Verify source on ${{ matrix.os }}
193- needs :
194- - source
195- runs-on : ${{ matrix.os }}-latest
196- timeout-minutes : 15
197- strategy :
198- fail-fast : false
199- matrix :
200- os :
201- - macos
202- - ubuntu
203- postgresql-version :
204- - " 15"
205- env :
206- BUNDLE_GEMFILE : ${{ github.workspace }}/apache-arrow-flight-sql-postgresql/Gemfile
207- steps :
208- - uses : actions/download-artifact@v3
209- with :
210- name : source
211- - name : Extract source archive
212- run : |
213- tar_gz=$(echo apache-arrow-flight-sql-postgresql-*.tar.gz)
214- tar xf ${tar_gz}
215- ln -s ${tar_gz%.tar.gz} apache-arrow-flight-sql-postgresql
216- - name : Install dependencies on Ubuntu
217- if : matrix.os == 'ubuntu'
218- run : |
219- sudo apt update
220- sudo apt install -y -V \
221- ca-certificates \
222- gpg \
223- lsb-release \
224- wget
225- os=$(lsb_release --id --short | tr 'A-Z' 'a-z')
226- code_name=$(lsb_release --codename --short)
227-
228- apt_source_deb=apache-arrow-apt-source-latest-${code_name}.deb
229- wget https://apache.jfrog.io/artifactory/arrow/${os}/${apt_source_deb}
230- sudo apt install -y -V ./${apt_source_deb}
231-
232- wget -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
233- sudo gpg --no-default-keyring --keyring /usr/share/keyrings/pgdg.gpg --import -
234- (echo "Types: deb"; \
235- echo "URIs: http://apt.postgresql.org/pub/repos/apt"; \
236- echo "Suites: ${code_name}-pgdg"; \
237- echo "Components: main"; \
238- echo "Signed-By: /usr/share/keyrings/pgdg.gpg") | \
239- sudo tee /etc/apt/sources.list.d/pgdg.sources
240-
241- sudo apt update
242- sudo apt -y -V purge '^postgresql'
243- sudo apt install -y -V \
244- libarrow-flight-sql-glib-dev \
245- libkrb5-dev \
246- meson \
247- ninja-build \
248- postgresql-${{ matrix.postgresql-version }} \
249- postgresql-server-dev-${{ matrix.postgresql-version }}
250- - name : Install dependencies on macOS
251- if : matrix.os == 'macos'
252- run : |
253- pushd apache-arrow-flight-sql-postgresql
254- sed \
255- -i '' \
256- -e 's/postgresql@[0-9]*/postgresql@${{ matrix.postgresql-version }}/g' \
257- Brewfile
258- brew update
259- brew bundle
260- echo "$(brew --prefix postgresql@${{ matrix.postgresql-version }})/bin" >> $GITHUB_PATH
261- popd
262- - uses : ruby/setup-ruby@v1
263- with :
264- ruby-version : ruby
265- bundler-cache : true
266- cache-version : 1
267- - name : Run
268- run : |
269- pushd apache-arrow-flight-sql-postgresql
270- bundle exec dev/release/verify-rc.sh
271- popd
272- env :
273- TEST_DEFAULT : " 0"
274- TEST_SOURCE : " 1"
275-
276- verify-binaries :
277- name : Verify binaries
278- if : >-
279- github.ref_type == 'tag'
280- needs :
281- - linux
282- runs-on : ubuntu-latest
283- timeout-minutes : 10
284- steps :
285- - uses : actions/checkout@v4
286- - name : Run
287- run : |
288- version=${GITHUB_REF_NAME%-rc*}
289- rc=${GITHUB_REF_NAME#*-rc}
290- dev/release/verify-rc.sh ${version} ${rc}
291- env :
292- TEST_BINARIES : " 1"
293- TEST_DEFAULT : " 0"
0 commit comments