2024-02-08 14:09:28 +00:00
|
|
|
name: Python package build on Arch Linux
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
container:
|
|
|
|
image: archlinux:latest
|
|
|
|
options: --privileged
|
|
|
|
|
|
|
|
steps:
|
2024-02-08 14:26:31 +00:00
|
|
|
- name: Install git
|
|
|
|
run: |
|
|
|
|
yes | pacman -Sy git
|
|
|
|
|
2024-02-08 14:09:28 +00:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
2024-02-08 14:24:47 +00:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2024-02-08 14:09:28 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-02-08 14:49:27 +00:00
|
|
|
yes | pacman -S python python-pip hdf5 limesuite python-build automake gcc pkgconf base-devel
|
2024-02-08 14:09:28 +00:00
|
|
|
|
2024-02-10 15:32:58 +00:00
|
|
|
- name: Install the package
|
|
|
|
run: |
|
2024-02-10 15:36:18 +00:00
|
|
|
pip install . --break-system-packages
|
2024-02-10 15:32:58 +00:00
|
|
|
|
|
|
|
- name: Test if the package can be imported
|
|
|
|
run: |
|
|
|
|
python -m limedriver
|
|
|
|
|
2024-02-08 14:09:28 +00:00
|
|
|
- name: Build the package
|
|
|
|
run: |
|
|
|
|
python -m build
|
|
|
|
|
|
|
|
- name: Upload built packages as artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: built-package
|
2024-02-10 15:32:58 +00:00
|
|
|
path: dist/
|