new qemu attempt #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 update | |
sudo apt-get install libtbb-dev libhwloc-dev gcc-9 g++-9 | |
apt show libtbb-dev | |
- 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: arm64 | |
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: | | |
apt-get update | |
apt-get install libtbb-dev libhwloc-dev gcc-9 g++-9 | |
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 built binary file to artifacts directory | |
cp packages/*.deb /artifacts/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: debian-package | |
path: ./artifacts/*.deb |