Skip to content

Commit

Permalink
[CI] Build within Holy-Build-Box
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Elliott <[email protected]>
  • Loading branch information
lenary committed Nov 10, 2020
1 parent e0103d5 commit e089523
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
21 changes: 17 additions & 4 deletions _build-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,33 @@
# - building qemu
#
steps:
# - bash: |
# sudo apt-get install -y build-essential autoconf bison flex \
# texinfo help2man gawk libtool-bin libncurses5-dev git libtool \
# gettext wget curl libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev \
# lld-9 clang-9 cmake


# Untranslated dependencies:
# - libpixman-1-dev
# - libglib2.0-dev
- bash: |
sudo apt-get install -y build-essential autoconf bison flex \
texinfo help2man gawk libtool-bin libncurses5-dev git libtool \
gettext wget curl libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev \
lld-9 clang-9 cmake
source /hbb_exe/activate
sudo yum install -y bison flex texinfo help2man gawk ncurses-devel \
ncurses-static gettext wget curl libfdt-devel
displayName: 'Install build dependencies'

- bash: |
source /hbb_exe/activate
./install-crosstool-ng.sh
displayName: 'Build and install crosstool-ng'

- bash: |
set -e
set -x
source /hbb_exe/activate
git fetch --tags
# git-describe --always almost does what we want, but we need to connect the
Expand Down
10 changes: 9 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ pr:
include:
- '*'

resources:
containers:
- container: holy-build-box
image: phusion/holy-build-box-64:latest

jobs:
- job: "Toolchains_RV32IMC"
displayName: "Toolchains targeting Ibex"
pool:
vmImage: "ubuntu-16.04"
container: holy-build-box
timeoutInMinutes: 360
steps:
- template: "_build-deps.yml"
Expand Down Expand Up @@ -56,6 +62,7 @@ jobs:
# correct versions as implemented by clang (B 0.92).
pool:
vmImage: "ubuntu-16.04"
container: holy-build-box
timeoutInMinutes: 360
steps:
- template: "_build-deps.yml"
Expand Down Expand Up @@ -106,11 +113,12 @@ jobs:
- template: "_upload-artifacts.yml"
parameters:
azure_name: rv32imcb-toolchains

- job: "Toolchains_RV64IMAC"
displayName: "GCC and Clang/LLVM toolchains targeting RV64IMAC (Muntjac)"
pool:
vmImage: "ubuntu-16.04"
container: holy-build-box
timeoutInMinutes: 360
steps:
- template: "_build-deps.yml"
Expand Down
2 changes: 2 additions & 0 deletions build-clang-with-args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if ! [ "$#" -ge 3 ]; then
exit 2
fi;

source /hbb_exe/activate

## Take configuration from arguments
# This is the name for the tar file.
# Suggested to be the gcc config with s/gcc/clang/. Will be updated if it
Expand Down
2 changes: 2 additions & 0 deletions build-gcc-with-args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if ! [ "$#" -ge 3 ]; then
exit 2
fi;

source /hbb_exe/activate

## Take configuration from arguments
# This is the name for the tar file, and also the basename of the .config file
toolchain_name="${1}"
Expand Down

0 comments on commit e089523

Please sign in to comment.