Welcome to mirror list, hosted at ThFree Co, Russian Federation.

linux.arm64.groovy « buildpipeline - github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9020649f4658f092f810c78681aa3d7a91066e6a (plain)
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
47
48
49
50
@Library('dotnet-ci') _

// Incoming parameters.  Access with "params.<param name>".
// Note that the parameters will be set as env variables so we cannot use names that conflict
// with the engineering system parameter names.
// CGroup - Build configuration.
// TestOuter - If true, runs outerloop, if false runs just innerloop

def submittedHelixJson = null

simpleDockerNode('microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-arm64-a3ae44b-20180315221921') {
    stage ('Checkout source') {
        checkoutRepo()
    }

    def logFolder = getLogFolder()

    stage ('Initialize tools') {
        // Init tools
        sh './init-tools.sh'
    }
    stage ('Generate version assets') {
        // Generate the version assets.  Do we need to even do this for non-official builds?
        sh "./build-managed.sh -- /t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true"
    }
    stage ('Sync') {
        sh "./sync.sh -p -BuildTests=false -- /p:ArchGroup=arm64"
    }
    // For arm64 cross builds we split the 'Build Product' build.sh command into 3 separate parts
    stage ('Build Native') {
        sh """
            export ROOTFS_DIR=/crossrootfs/arm64
            ./build-native.sh -buildArch=arm64 -${params.CGroup}
        """
    }
    stage ('Build Managed') {
        // Cross build builds Linux Managed components using x64 target
        // We do not want x64 packages
        sh "./build-managed.sh -BuildPackages=false -buildArch=x64 -${params.CGroup}"
    }
    stage ('Build Packages') {
        sh "./build-packages.sh -buildArch=arm64 -${params.CGroup}"
    }

    // TODO: Build Tests for arm64 when possible

    // TODO: Add submission for Helix testing once we have queue for arm64 Linux working
}

// TODO: Add "Execute tests" stage once we have queue for arm64 Linux working