drone: Add CI config
Signed-off-by: PeroSar <perosar1111@gmail.com>
This commit is contained in:
parent
a7fe233b27
commit
c55b294586
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Emerald
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- custom
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: ubuntu:20.04
|
||||
commands:
|
||||
- apt update -yqq && apt install software-properties-common -yqq >/dev/null 2>&1 && add-apt-repository ppa:ubuntu-toolchain-r/test -y && apt install build-essential flex texinfo curl xz-utils gcc-11 g++-11 -yqq >/dev/null 2>&1
|
||||
- ln -sf $(which gcc-11) $(which gcc) && ln -sf $(which g++-11) $(which g++)
|
||||
- bash emerald-binutils.sh && rm -rf build
|
||||
- bash emerald-sysroot.sh
|
||||
- bash emerald-gcc.sh
|
||||
- env XZ_OPT="-9 -T0" tar -C /tmp -cJf aarch64-linux-android-emerald.tar.xz aarch64-linux-android-emerald
|
||||
- bash emerald-get-relver.sh
|
||||
|
||||
|
||||
- name: release
|
||||
image: tystuyfzand/drone-gitea-release
|
||||
settings:
|
||||
gitea_server: https://tildegit.org
|
||||
tag_file: tag.txt
|
||||
title_file: title.txt
|
||||
files: [ 'aarch64-linux-android-emerald.tar.xz' ]
|
||||
environment:
|
||||
PLUGIN_API_KEY:
|
||||
from_secret: gitea_token
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
GCC_VER=$(grep -P -m1 '^GCC_VER=' emerald-gcc.sh | cut -d= -f2)
|
||||
BINUTILS_VER=$(grep -P -m1 '^BINUTILS_VER=' emerald-binutils.sh | cut -d= -f2)
|
||||
|
||||
echo "emerald: GCC v$GCC_VER, Binutils v$BINUTILS_VER" > title.txt
|
||||
echo "$GCC_VER" > tag.txt
|
Loading…
Reference in New Issue