Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI for BSD #167

Draft
wants to merge 33 commits into
base: master
Choose a base branch
from
Draft

CI for BSD #167

wants to merge 33 commits into from

Conversation

Youw
Copy link
Contributor

@Youw Youw commented Nov 14, 2023

Got FreeBSD CI working.
Failed with NetBSD and OpenBSD - can figure out how to install all required packages properly and don't have a real system to debug it locally properly.
Leaving my attempts as a template.

@Youw
Copy link
Contributor Author

Youw commented Nov 14, 2023

@Youw
Copy link
Contributor Author

Youw commented Nov 14, 2023

My latest attempt with NetBSD and OpenBSD:
https://github.com/Youw/cython-hidapi/actions/runs/6864037362
(if anyone wants to take over).

${{ matrix.platform.name == 'freebsd' && 'sudo pkg install -y autoconf automake libtool gmake libiconv pkgconf lang/python3 lang/python devel/py-pip' || '' }}
${{ matrix.platform.name == 'netbsd' && 'export PATH=$PATH:/usr/sbin/; sudo pkg_add devel/autoconf devel/automake devel/libtool devel/gmake devel/pkgconf devel/libusb1 converters/libiconv devel/py-pip' || '' }}
${{ matrix.platform.name == 'openbsd' && 'export AUTOCONF_VERSION=2.71; export AUTOMAKE_VERSION=1.15; sudo pkg_add autoconf-2.71 automake-1.15.1 libtool gmake pkgconf libusb1-- libiconv python3 py3-pip' || '' }}
${{ matrix.system-hidapi == '--with-system-hidapi' && './build_install_hidapi_autotools.sh' || '' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have to use autotools build here due to bug in CMake build: libusb/hidapi#638


export PLATFORM_VERSION=${{ matrix.platform.version }}
${{ matrix.platform.name == 'freebsd' && 'sudo pkg install -y autoconf automake libtool gmake libiconv pkgconf lang/python3 lang/python devel/py-pip' || '' }}
${{ matrix.platform.name == 'netbsd' && 'export PATH=$PATH:/usr/sbin/; sudo pkg_add devel/autoconf devel/automake devel/libtool devel/gmake devel/pkgconf devel/libusb1 converters/libiconv devel/py-pip' || '' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe /usr/pkg/bin is missing in path for python to be found - haven't checked yet

Copy link
Contributor Author

@Youw Youw Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe need a symling for python3.9->python - haven't checked either

@Youw Youw marked this pull request as draft November 14, 2023 20:11
@Youw
Copy link
Contributor Author

Youw commented Nov 14, 2023

And even for the only working (FreeBSD) - it suddenly hangs. Have no idea why(
Keeping it as draft for now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant