-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
47 lines (40 loc) · 1.68 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
kind: pipeline
name: GNU GCC ARM32 BUILD
clone:
disable: true
platform:
arch: amd64
steps:
- name: BUILDING GCC
image: ubuntu:20.04
environment:
DEBIAN_FRONTEND: noninteractive
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
TARGET: arm
GCC_VERSION: 11
GIT_REPO: EternalX-project/arm-linux-gnueabi
GIT_BRANCH: amd64
GIT_COMMIT_MESSAGE: "Update GCC 11 from CI build"
commands:
# Setup Docker
- apt-get update
- apt-get install -yq software-properties-common lsb-release apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- apt-get install -yq docker-ce
# Installing Dependencies
- apt-get update
- apt-get -y upgrade
- apt-get -y install flex bison ncurses-dev texinfo gcc gperf patch libtool automake g++ libncurses5-dev gawk expat libexpat1-dev python-all-dev binutils-dev bc libcap-dev autoconf autoconf-archive libgmp-dev build-essential gcc-multilib g++-multilib pkg-config libmpc-dev libmpfr-dev autopoint gettext liblzma-dev libssl-dev libz-dev rsync wget
# Building GCC
- git clone https://github.com/EternalX-project/build-tools-gcc.git builder && cd builder
- bash build -a $TARGET -s gnu -v $GCC_VERSION -V -p gz glibc
# Push GCC To Github
- git clone "https://$GITHUB_TOKEN@github.com/$GIT_REPO" upstream -b $GIT_BRANCH
- cd upstream
- rm -rf *
- cp -r ../arm-linux-gnueabi/* .
- git add .
- git commit -am "$GIT_COMMIT_MESSAGE"
- git push origin $GIT_BRANCH