Skip to content

Notebook instructions #24

Notebook instructions

Notebook instructions #24

Workflow file for this run

name: Build GKLS
on:
push:
branches: [ "main", "dev", "opti"]
tags:
- 'v*'
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build-x86-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get install python3
sudo apt-get install -y python3-dev
python -m pip install --upgrade pip
# Runs a single command using the runners shell
- name: Build GKLS
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib
sh build_and_install.sh
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: linux-artifact
path: |
pygkls/libpygkls.so
pygkls/pygkls*.so
build-arm-macos:
runs-on: macos-latest
needs: build-x86-linux
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew uninstall python --ignore-dependencies
brew cleanup python
python -m pip install --upgrade pip
python -m pip install pybind11
- name: Build GKLS
run: |
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$HOME/.local/lib
sh build_and_install.sh
- name: Download artifact
uses: actions/download-artifact@master
with:
name: linux-artifact
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: "
Please, make sure to put `pygkls*.so` in the Python package directory and `libpygkls.{so, dylib}` in the dinamyc library directory.
> [!WARNING]
> To use pyGKLS in Jupyter notebooks, it seems that one needs to put the shared library (`libpygkls.{so|dylib}`) in the global library path (e.g. `/usr/local/lib`), or to create a symbolic link. One can also put the shared library in the same directory as the notebook.
"
files: |
*.so
pygkls/*.so
pygkls/*.dylib