Skip to content

I guess it's http

I guess it's http #13

name: Mt-KaHyPar Debian Package
on:
push
jobs:
# package_x86:
# name: Debian Package x86
# runs-on: ubuntu-20.04 # use old ubuntu for better backwards compatibility with system libraries
# env:
# CI_ACTIVE : 1
# steps:
# - uses: actions/checkout@v4
# - name: Install Dependencies
# run: |
# echo "deb http://cz.archive.ubuntu.com/ubuntu jammy main universe" | sudo tee -a /etc/apt/sources.list
# sudo apt-get -y update
# sudo apt-get -y install libtbb-dev libhwloc-dev gcc-9 g++-9
# - name: Build Mt-KaHyPar Debian Package
# env:
# CC: gcc-9
# CXX: g++-9
# 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_PACKAGE=ON
# make -j4
# make package-mtkahypar-deb
# - uses: actions/upload-artifact@v4
# with:
# name: debian-package
# path: ./build/packages/*.deb
package_arm64:
name: Debian Package ARM
runs-on: ubuntu-20.04
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 dependencies
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 libhwloc-dev gcc-9 g++-9 cmake build-essential
# 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_PACKAGE=ON
make -j4
make package-mtkahypar-deb
# copy result to artifacts directory
cp packages/*.deb /artifacts/
- uses: actions/upload-artifact@v4
with:
name: debian-package
path: ./artifacts/*.deb