Merge pull request #1 from SoftVarE-Group/update-d4 #6
Workflow file for this run
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: Publish | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
CARGO_TERM_COLOR: always | |
CMAKE_GENERATOR: Ninja | |
jobs: | |
Publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install dependencies | |
run: sudo apt-get install ninja-build libtbb-dev libhwloc-dev libboost-program-options-dev | |
- name: Setup environment | |
run: | | |
echo MTKAHYPAR_DIR=$(mktemp -d) >> $GITHUB_ENV | |
- name: Build Mt-KaHyPar | |
run: | | |
cd $(mktemp -d) | |
git clone --recursive https://github.com/kahypar/mt-kahypar.git . | |
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) | |
cmake -B build -D CMAKE_INSTALL_PREFIX=$MTKAHYPAR_DIR | |
cmake --build build --target mtkahypar | |
cmake --install build | |
- name: Publish | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
run: cargo publish |