我想用Alpine Linux在CI运行器上编译我的项目。
该项目是使用fbs模块在Python中创建的。
可以从download
开始,到fbs run
冻结,并且可以通过fbs freeze
进行安装。
但是,如果我尝试使用以下fbs installer
进行编译:
.gitlab-ci.yml
除before_script:
- alias pip="pip3"
- apk add --update --no-cache python3 python3-dev
- python3 -m ensurepip
- rm -r /usr/lib/python*/ensurepip
- pip3 install --upgrade pip setuptools
- ls
- cd code/
- apk add py3-qt5
- pip3 install wheel
- pip3 install -r production.txt
test:
stage: test
tags:
- docker-in-docker
script:
- pytest
production:
type: deploy
tags:
- docker-in-docker
script:
- ln -s /lib/libc.musl-x86_64.so.1 ldd
- ln -s /lib /lib64
- fbs freeze
- fbs installer
和fbs freeze
以外的所有命令均有效。
执行fbs installer
时会引发以下错误:
fbs freeze
有什么办法解决这个问题吗?