Bug 1274350 - Add Win2012 x64 opt builds r=me
authorTim Taubert <ttaubert@mozilla.com>
Wed, 01 Jun 2016 11:12:55 +0200
changeset 12226 765c0adb71b706b0984e732d0b0bddbe533cbe4c
parent 12225 d9dd355db7e5f7cbee9cbf2ae4b030259dcc7999
child 12227 0d4b357c730b8d32ed85999492263f6dcc3fa9f6
push id1276
push userttaubert@mozilla.com
push dateWed, 01 Jun 2016 09:14:16 +0000
reviewersme
bugs1274350
Bug 1274350 - Add Win2012 x64 opt builds r=me
automation/taskcluster/graph/builds/win2012x64-opt.yml
automation/taskcluster/windows/build.sh
automation/taskcluster/windows/releng.manifest
automation/taskcluster/windows/setup.sh
new file mode 100644
--- /dev/null
+++ b/automation/taskcluster/graph/builds/win2012x64-opt.yml
@@ -0,0 +1,31 @@
+---
+- task:
+    workerType: ttaubert-win2012r2
+
+    metadata:
+      name: "Windows 2012 64 (opt)"
+      description: "Windows 2012 64 (opt)"
+
+    payload:
+      artifacts:
+        - type: directory
+          path: "public\\build"
+          expires: !from_now 24
+      command:
+        - "time /t && hg clone -r %NSS_HEAD_REVISION% %NSS_HEAD_REPOSITORY% nss"
+        - "time /t && bash -c nss/automation/taskcluster/windows/build.sh"
+      env:
+        PATH: "c:\\mozilla-build\\python;c:\\mozilla-build\\msys\\local\\bin;c:\\mozilla-build\\7zip;c:\\mozilla-build\\info-zip;c:\\mozilla-build\\python\\Scripts;c:\\mozilla-build\\yasm;c:\\mozilla-build\\msys\\bin;c:\\Windows\\system32;c:\\mozilla-build\\upx391w;c:\\mozilla-build\\moztools-x64\\bin;c:\\mozilla-build\\wget"
+        NSS_ENABLE_TLS_1_3: "1"
+        DOMSUF: localdomain
+        HOST: localhost
+        BUILD_OPT: "1"
+        USE_64: "1"
+
+    extra:
+      treeherder:
+        build:
+          platform: windows2012-64
+        collection:
+          opt: true
+        symbol: B
new file mode 100644
--- /dev/null
+++ b/automation/taskcluster/windows/build.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+set -v -e -x
+
+# Set up the toolchain.
+source $(dirname $0)/setup.sh
+
+# Clone NSPR.
+hg clone https://hg.mozilla.org/projects/nspr
+
+# Build.
+cd nss && make nss_build_all
+
+# Package.
+7z a ../public/build/dist.7z ../dist
new file mode 100644
--- /dev/null
+++ b/automation/taskcluster/windows/releng.manifest
@@ -0,0 +1,10 @@
+[
+  {
+    "version": "Visual Studio 2015 Update 2 / SDK 10.0.10586.0/212",
+    "size": 332343834,
+    "digest": "55814aaabcd4aa51fe85918ec02a8c29bc067d41ee79ddcfd628daaba5a06d4241a73a51bf5a8bc69cc762b52551009f44b05e65682c45b4684c17fb2d017c2c",
+    "algorithm": "sha512",
+    "filename": "vs2015u2.zip",
+    "unpack": true
+  }
+]
new file mode 100644
--- /dev/null
+++ b/automation/taskcluster/windows/setup.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+set -v -e -x
+
+hg clone https://hg.mozilla.org/build/tools
+
+tools/scripts/tooltool/tooltool_wrapper.sh $(dirname $0)/releng.manifest https://api.pub.build.mozilla.org/tooltool/ setup.sh /c/mozilla-build/python/python.exe /c/builds/tooltool.py --authentication-file /c/builds/relengapi.tok -c /c/builds/tooltool_cache
+VSPATH="$(pwd)/vs2015u2"
+
+export WINDOWSSDKDIR="${VSPATH}/SDK"
+export WIN32_REDIST_DIR="${VSPATH}/VC/redist/x64/Microsoft.VC140.CRT"
+export WIN_UCRT_REDIST_DIR="${VSPATH}/SDK/Redist/ucrt/DLLs/x64"
+
+export PATH="${VSPATH}/VC/bin/amd64:${VSPATH}/VC/bin:${VSPATH}/SDK/bin/x64:${VSPATH}/VC/redist/x64/Microsoft.VC140.CRT:${VSPATH}/SDK/Redist/ucrt/DLLs/x64:${VSPATH}/DIASDK/bin/amd64:${PATH}"
+
+export INCLUDE="${VSPATH}/VC/include:${VSPATH}/VC/atlmfc/include:${VSPATH}/SDK/Include/ucrt:${VSPATH}/SDK/Include/shared:${VSPATH}/SDK/Include/um:${VSPATH}/SDK/Include/winrt:${VSPATH}/DIASDK/include"
+export LIB="${VSPATH}/VC/lib/amd64:${VSPATH}/VC/atlmfc/lib/amd64:${VSPATH}/SDK/lib/ucrt/x64:${VSPATH}/SDK/lib/um/x64:${VSPATH}/DIASDK/lib/amd64"