This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
pyabra/.drone.yml

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