38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
|
---
|
||
|
kind: pipeline
|
||
|
name: hammer out a binary
|
||
|
steps:
|
||
|
- name: build that shit
|
||
|
image: python:buster
|
||
|
commands:
|
||
|
- |
|
||
|
apt update && apt install --no-install-recommends -y \
|
||
|
ccache \
|
||
|
chrpath \
|
||
|
clang \
|
||
|
libfuse-dev \
|
||
|
libglib2.0-0
|
||
|
- python3 -m pip install -U pip wheel setuptools nuitka poetry
|
||
|
- python3 -m poetry export > requirements.txt
|
||
|
- python3 -m pip install -r requirements.txt
|
||
|
- |
|
||
|
python3 -m nuitka \
|
||
|
--standalone \
|
||
|
--onefile \
|
||
|
--clang \
|
||
|
--assume-yes-for-downloads \
|
||
|
--plugin-enable=anti-bloat \
|
||
|
--follow-imports \
|
||
|
--prefer-source-code \
|
||
|
--python-flag=nosite,-O \
|
||
|
--output-dir /drone/src \
|
||
|
/drone/src/pyabra.py
|
||
|
|
||
|
- name: release that shit
|
||
|
image: plugins/gitea-release
|
||
|
settings:
|
||
|
api_key:
|
||
|
from_secret: decentral1se_apikey
|
||
|
base_url: https://git.autonomic.zone
|
||
|
files: /drone/src/pyabra.bin
|