Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,21 +390,33 @@ jobs:
dist/*.pom

linux:
name: Linux ${{ matrix.target }}
runs-on: ubuntu-latest
name: Linux ${{ matrix.distribution }} ${{ matrix.platform.arch }}
runs-on: ${{ matrix.platform.runs_on }}
needs:
- source
strategy:
max-parallel: 2
fail-fast: false
matrix:
target:
distribution:
- almalinux-8
- almalinux-9
- almalinux-10
- debian-trixie
- ubuntu-jammy
- ubuntu-noble
platform:
- { arch: amd64, runs_on: ubuntu-latest }
- { arch: arm64, runs_on: ubuntu-24.04-arm }
env:
# amd64: almalinux-10, debian-trixie, ...
# arm64: almalinux-10-aarch64, debian-trixie-arm64, ...
TARGET: >-
${{ matrix.distribution }}${{
matrix.platform.arch == 'arm64' &&
(startsWith(matrix.distribution, 'almalinux-') && '-aarch64' || '-arm64') ||
''
}}
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
Expand All @@ -419,17 +431,17 @@ jobs:
- name: Set output variables
run: |
echo "ARROW_SOURCE=$(pwd)/arrow" >> $GITHUB_ENV
case ${{ matrix.target }} in
case ${{ env.TARGET }} in
almalinux-*)
echo "TASK_NAMESPACE=yum" >> $GITHUB_ENV
echo "YUM_TARGETS=${{ matrix.target }}" >> $GITHUB_ENV
echo "YUM_TARGETS=${{ env.TARGET }}" >> $GITHUB_ENV
;;
debian-*|ubuntu-*)
echo "TASK_NAMESPACE=apt" >> $GITHUB_ENV
echo "APT_TARGETS=${{ matrix.target }}" >> $GITHUB_ENV
echo "APT_TARGETS=${{ env.TARGET }}" >> $GITHUB_ENV
;;
esac
distribution=$(echo ${{ matrix.target }} | cut -d- -f1)
distribution=$(echo ${{ env.TARGET }} | cut -d- -f1)
echo "DISTRIBUTION=${distribution}" >> $GITHUB_ENV

source_archive=$(echo apache-arrow-adbc-*.tar.gz)
Expand All @@ -454,9 +466,9 @@ jobs:
- name: Cache ccache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: adbc/ci/linux-packages/${{ env.TASK_NAMESPACE }}/build/${{ matrix.target }}/ccache
key: linux-${{ env.TASK_NAMESPACE }}-ccache-${{ matrix.target }}-{{ "${{ hashFiles('adbc.h', 'c/**', 'glib/**') }}" }}
restore-keys: linux-${{ env.TASK_NAMESPACE }}-ccache-${{ matrix.target }}-
path: adbc/ci/linux-packages/${{ env.TASK_NAMESPACE }}/build/${{ env.TARGET }}/ccache
key: linux-${{ env.TASK_NAMESPACE }}-ccache-${{ env.TARGET }}-{{ "${{ hashFiles('adbc.h', 'c/**', 'glib/**') }}" }}
restore-keys: linux-${{ env.TASK_NAMESPACE }}-ccache-${{ env.TARGET }}-
lookup-only: true

- name: Login to GitHub Container registry
Expand All @@ -481,15 +493,15 @@ jobs:
cp -a \
adbc/ci/linux-packages/${TASK_NAMESPACE}/repositories/${DISTRIBUTION} \
./
tar czf ${{ matrix.target }}.tar.gz ${DISTRIBUTION}
tar czf ${{ env.TARGET }}.tar.gz ${DISTRIBUTION}

- name: Upload artifacts
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ${{ matrix.target }}
name: ${{ env.TARGET }}
retention-days: 7
path: |
${{ matrix.target }}.tar.gz
${{ env.TARGET }}.tar.gz

- name: Push Docker image
run: |
Expand Down
1 change: 0 additions & 1 deletion ci/linux-packages/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ GEM

PLATFORMS
ruby
x86_64-linux-gnu

DEPENDENCIES
apt-dists-merge
Expand Down
18 changes: 18 additions & 0 deletions ci/linux-packages/apt/debian-trixie-arm64/from
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

arm64v8/debian:trixie
18 changes: 18 additions & 0 deletions ci/linux-packages/apt/ubuntu-jammy-arm64/from
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

arm64v8/ubuntu:jammy
18 changes: 18 additions & 0 deletions ci/linux-packages/apt/ubuntu-noble-arm64/from
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

arm64v8/ubuntu:noble
18 changes: 18 additions & 0 deletions ci/linux-packages/yum/almalinux-10-aarch64/from
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

arm64v8/almalinux:10
15 changes: 12 additions & 3 deletions ci/linux-packages/yum/almalinux-10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ RUN \


ARG GO_VERSION
RUN wget --no-verbose https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \
rm go${GO_VERSION}.linux-amd64.tar.gz
RUN ARCH=$(arch) && \
if [[ ${ARCH} == "x86_64" ]]; then \
GO_ARCH="amd64"; \
elif [[ ${ARCH} == "aarch64" ]]; then \
GO_ARCH="arm64"; \
else \
echo "Unsupported platform: ${ARCH}"; \
exit 1; \
fi && \
wget --no-verbose https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
rm go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
ENV PATH="/usr/local/go/bin:${PATH}"
18 changes: 18 additions & 0 deletions ci/linux-packages/yum/almalinux-8-aarch64/from
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

arm64v8/almalinux:8
15 changes: 12 additions & 3 deletions ci/linux-packages/yum/almalinux-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ RUN \
yum clean ${quiet} all

ARG GO_VERSION
RUN wget --no-verbose https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \
rm go${GO_VERSION}.linux-amd64.tar.gz
RUN ARCH=$(arch) && \
if [[ ${ARCH} == "x86_64" ]]; then \
GO_ARCH="amd64"; \
elif [[ ${ARCH} == "aarch64" ]]; then \
GO_ARCH="arm64"; \
else \
echo "Unsupported platform: ${ARCH}"; \
exit 1; \
fi && \
wget --no-verbose https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
rm go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
ENV PATH="/usr/local/go/bin:${PATH}"
18 changes: 18 additions & 0 deletions ci/linux-packages/yum/almalinux-9-aarch64/from
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

arm64v8/almalinux:9
15 changes: 12 additions & 3 deletions ci/linux-packages/yum/almalinux-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ RUN \


ARG GO_VERSION
RUN wget --no-verbose https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \
rm go${GO_VERSION}.linux-amd64.tar.gz
RUN ARCH=$(arch) && \
if [[ ${ARCH} == "x86_64" ]]; then \
GO_ARCH="amd64"; \
elif [[ ${ARCH} == "aarch64" ]]; then \
GO_ARCH="arm64"; \
else \
echo "Unsupported platform: ${ARCH}"; \
exit 1; \
fi && \
wget --no-verbose https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
rm go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
ENV PATH="/usr/local/go/bin:${PATH}"