Skip to content
Snippets Groups Projects
Verified Commit 6a45e034 authored by Newbyte's avatar Newbyte :snowflake:
Browse files

CI: Build native libraries for mrhlpr and mrtest via mypyc

Mostly for fun. Not sure if there's any real practical benefit. It might
be useful for pmbootstrap later, but adopting it to be compatible with
mypyc would likely be more work, so I'm using this as a playground to
learn how it works.
parent 0e1e5986
No related branches found
No related tags found
No related merge requests found
#!/bin/sh -e
# Description: Build native libraries of mrhlpr and mrtest using mypyc
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add gcc musl-dev py3-argcomplete py3-gitlab py3-pip python3-dev
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
set -x
# mypyc from Alpine may be an old version. Given mypyc's early development
# status, install it from pypi instead to ensure we don't have to deal with
# working around bugs that already have been fixed in newer versions.
pip install --break-system-packages --no-warn-script-location mypy
python -m mypyc mrtest mrhlpr
\ No newline at end of file
......@@ -11,3 +11,8 @@ mypy:
- adduser -D build
script:
- .ci/mypy.sh
native-build:
before_script:
- adduser -D build
script:
- .ci/native-build.sh
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment