diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..4d1d419 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,36 @@ +name: Python package build on Arch Linux + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + container: + image: archlinux:latest + options: --privileged + + steps: + - name: Install git + run: | + yes | pacman -Sy git + + - name: Checkout repository + uses: actions/checkout@v2 + with: + submodules: 'recursive' + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install dependencies + run: | + yes | pacman -S python python-pip hdf5 limesuite python-build automake gcc pkgconf base-devel + + - name: Build the package + run: | + python -m build + + - name: Upload built packages as artifact + uses: actions/upload-artifact@v2 + with: + name: built-package + path: dist/ diff --git a/.gitignore b/.gitignore index e472d29..74f6fa5 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,7 @@ __pycache__/ build/ *.c *.cpp +dist/ src/limedriver.egg-info # Data diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..b6e054b --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include src/limedriver/*.pyx +include extern/limedriver/src/* +include extern/limedriver/*