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:30:49 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2024-02-08 14:09:28 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-02-08 14:37:48 +00:00
|
|
|
yes | pacman -S python python-pip hdf5 limesuite python-build automake
|
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
|
|
|
|
path: dist/
|