Skip to content

Commit

Permalink
fix for debian package arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Maas committed Feb 11, 2025
1 parent 15d6911 commit a4a97ff
Showing 1 changed file with 19 additions and 42 deletions.
61 changes: 19 additions & 42 deletions .github/workflows/debian_build_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,58 +45,35 @@ jobs:
debian_package_arm64:
name: Debian Package ARM

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04-arm # use old ubuntu for better backwards compatibility with system libraries
env:
CI_ACTIVE : 1

steps:
- uses: actions/checkout@v4

- name: Build Mt-KaHyPar Debian Package via QEMU
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu20.04 # use old ubuntu for better backwards compatibility with system libraries

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# Create an artifacts directory
setup: |
mkdir -p artifacts
# Mount the artifacts directory as /artifacts in the container
dockerRunArgs: |
--volume "${PWD}/artifacts:/artifacts"
run: |
# install basic dependencies
apt-get -y update
apt-get -y install libhwloc-dev gcc-9 g++-9 git build-essential ca-certificates gpg wget
apt-get -y purge --auto-remove cmake
# add repositories to get newer cmake and TBB versions
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main" | tee /etc/apt/sources.list.d/kitware.list
echo "deb http://ports.ubuntu.com/ubuntu-ports/ jammy main universe" | tee -a /etc/apt/sources.list
apt-get -y update
apt-get -y install libtbb-dev cmake
# actual installation
mkdir build && cd build
cmake .. --preset=default -DCMAKE_POSITION_INDEPENDENT_CODE=On -DKAHYPAR_CI_BUILD=ON \
-DKAHYPAR_DOWNLOAD_BOOST=ON -DKAHYPAR_STATIC_LINK_DEPENDENCIES=ON \
-DKAHYPAR_ENABLE_ARCH_COMPILE_OPTIMIZATIONS=OFF -DKAHYPAR_ENABLE_THREAD_PINNING=OFF -DKAHYPAR_BUILD_DEBIAN_PACKAGE=ON
make -j4
make package-mtkahypar-deb
# copy result to artifacts directory
cp packages/*.deb /artifacts/
- name: Install Dependencies
run: |
sudo apt-get -y install libtbb-dev libhwloc-dev gcc-10 g++-10
- name: Build Mt-KaHyPar Debian Package
env:
CC: gcc-10
CXX: g++-10
run: |
rm -rf build
mkdir build
cd build
cmake .. --preset=default -DCMAKE_POSITION_INDEPENDENT_CODE=On -DKAHYPAR_CI_BUILD=ON \
-DKAHYPAR_DOWNLOAD_BOOST=ON -DKAHYPAR_STATIC_LINK_DEPENDENCIES=ON \
-DKAHYPAR_ENABLE_ARCH_COMPILE_OPTIMIZATIONS=OFF -DKAHYPAR_ENABLE_THREAD_PINNING=OFF -DKAHYPAR_BUILD_DEBIAN_PACKAGE=ON
make -j4
make package-mtkahypar-deb
- uses: actions/upload-artifact@v4
with:
name: debian-package-arm
path: ./artifacts/*.deb
path: ./build/packages/*.deb


upload_to_release:
Expand Down

0 comments on commit a4a97ff

Please sign in to comment.