Commit 845816d0 authored by James T. Lee's avatar James T. Lee
Browse files

Initial build

parent 18e3b415
Pipeline #480 passed with stage
in 648 minutes and 10 seconds
---
variables:
VERSION: '8.10.3'
.template: &template
image: '${CI_REGISTRY}/nest/stage1:${BUILD_CPU}-workstation'
stage: 'build'
tags: ['nest']
script:
- 'emerge --sync'
- 'MAKEOPTS="$CI_HOST_MAKEOPTS" emerge -v -j1 --onlydeps "=dev-lang/ghc-${VERSION}"'
- 'BINPKG_COMPRESS=bzip2
CFLAGS=
FEATURES=-splitdebug
MAKEOPTS="$CI_HOST_MAKEOPTS"
PKGDIR=/tmp/packages
USE="ghcbootstrap ghcmakebinary"
ebuild "/var/db/repos/nest/dev-lang/ghc/ghc-${VERSION}.ebuild" package'
- 'cp "/tmp/packages/dev-lang/ghc/ghc-${VERSION}-1.xpak" "/nest/portage/distfiles/ghc-bin-${VERSION}-${CHOST}.tbz2"'
'Build arm64':
<<: *template
variables:
BUILD_CPU: 'cortex-a72'
CHOST: 'aarch64-unknown-linux-gnu'
Notes for when I have time to work on this:
Build FROM a workstation image containing GHC already. Build new GHC with `USE=ghcbootstrap ghcmakebinary`, `FEATURES=-splitdebug`, `CFLAGS=`, and `BINPKG_COMPRESS=bzip2`. Copy the resulting package from `/nest/portage/packages` to `/nest/portage/distfiles` according to naming conventions in the GHC ebuild.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment