From a5876811d8c09f260e4ce977d39c53f3841e2ae0 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Fri, 14 Apr 2023 15:18:32 +0200 Subject: [PATCH] Instruction for 1.8.20 build --- ...{build-1.8.10-draft.md => build-1.8.20.md} | 36 ++++++++----------- docs/building/index.md | 5 +-- 2 files changed, 18 insertions(+), 23 deletions(-) rename docs/building/{build-1.8.10-draft.md => build-1.8.20.md} (54%) diff --git a/docs/building/build-1.8.10-draft.md b/docs/building/build-1.8.20.md similarity index 54% rename from docs/building/build-1.8.10-draft.md rename to docs/building/build-1.8.20.md index d4b434f5bc0..afe6814f4ab 100644 --- a/docs/building/build-1.8.10-draft.md +++ b/docs/building/build-1.8.20.md @@ -1,6 +1,6 @@ -# Building 1.8.10 +# Building 1.8.20 -This tutorial explains how to build release [1.8.10](https://github.com/JetBrains/kotlin/releases/tag/v1.8.10) locally. +This tutorial explains how to build release [1.8.20](https://github.com/JetBrains/kotlin/releases/tag/v1.8.20) locally. ## Prerequisites @@ -8,17 +8,18 @@ You must have: * Linux or macOS. * Docker installed. * 14 GB memory available and configured in Docker. -* To get reproducible artifacts, [umask](https://en.wikipedia.org/wiki/Umask) command without parameters should - produce `0022` or `022` output. +* To get reproducible artifacts, [umask](https://en.wikipedia.org/wiki/Umask) command without parameters should +produce `0022` or `022` output. ## Set environment variables The following environment variables must be set: ```shell -export DEPLOY_VERSION=1.8.10 -export BUILD_NUMBER=1.8.10-release-1 -export KOTLIN_NATIVE_VERSION=1.8.10 +export DEPLOY_VERSION=1.8.20 +export BUILD_NUMBER=1.8.20-release-327 +export MAVEN_BUILD_NUMBER=1.8.20-release-327\(1.8.20\) +export KOTLIN_NATIVE_VERSION=1.8.20 export DOCKER_CONTAINER_URL=kotlin.registry.jetbrains.space/p/kotlin/containers/kotlin-build-env:v6 ``` @@ -42,31 +43,24 @@ docker run --rm -it --name kotlin-build-$DEPLOY_VERSION \ /bin/bash -c "./scripts/build-kotlin-compiler.sh $DEPLOY_VERSION $BUILD_NUMBER" ``` -This generates a ZIP file: `dist/kotlin-compiler-1.8.10.zip`. +This generates a ZIP file: `dist/kotlin-compiler-$DEPLOY_VERSION.zip`. -Check that the SHA 256 checksum is equal to the published one for [kotlin-compiler-1.8.10.zip](https://github.com/JetBrains/kotlin/releases/download/v1.8.10/kotlin-compiler-1.8.10.zip): +Check that the SHA 256 checksum is equal to the published one for [kotlin-compiler.zip](https://github.com/JetBrains/kotlin/releases/download/v1.8.20/kotlin-compiler-1.8.20.zip): -`0bb9419fac9832a56a3a19cad282f8f2d6f1237d2d467dc8dfe9bd4a2a43c42e` +`10df74c3c6e2eafd4c7a5572352d37cbe41774996e42de627023cb4c82b50ae4` ## Build and verify maven artifacts ```shell -export BUILD_NUMBER="1.8.10-release-345(1.8.10)" docker run --rm -it --name kotlin-build-$DEPLOY_VERSION \ --workdir="/repo" \ --volume="$(pwd):/repo" \ --user="$(id -u):$(id -g)" \ $DOCKER_CONTAINER_URL \ - /bin/bash -c "./scripts/build-kotlin-maven.sh $DEPLOY_VERSION '$BUILD_NUMBER' $KOTLIN_NATIVE_VERSION" -docker run --rm -it --name kotlin-build-repack-zip-with-stable-entries-order-$DEPLOY_VERSION \ - --workdir="/repo" \ - --volume="$(pwd):/repo" \ - --user="$(id -u):$(id -g)" \ - $DOCKER_CONTAINER_URL \ - /bin/bash -c "cd build/repo-reproducible && rm reproducible-maven-$DEPLOY_VERSION.zip || true && find . -type f | sort | zip -X reproducible-maven-$DEPLOY_VERSION.zip -@" + /bin/bash -c "./scripts/build-kotlin-maven.sh $DEPLOY_VERSION '$MAVEN_BUILD_NUMBER' $KOTLIN_NATIVE_VERSION" ``` -This generates a ZIP file: `build/repo-reproducible/reproducible-maven-1.8.10.zip`. +This generates a ZIP file: `build/repo-reproducible/reproducible-maven-$DEPLOY_VERSION.zip`. -Check that the SHA 256 checksum is equal to -`98573938b708c193ca68c7269d29e6ac777dfe780b3935bc733d4c428a45d4e5`. \ No newline at end of file +Check that the SHA 256 checksum is equal to +`cab34569302361c66747691f6f04816b7dd0478e4ede7cea6420931ca953f731`. \ No newline at end of file diff --git a/docs/building/index.md b/docs/building/index.md index 626d9a4a061..700046fe8cb 100644 --- a/docs/building/index.md +++ b/docs/building/index.md @@ -1,6 +1,7 @@ # Kotlin builds +* [1.8.20](build-1.8.20.md) * [1.8.0](build-1.8.0.md) * [1.8.0-Beta](build-1.8.0-Beta.md) -* [1.7.21 Release](build-1.7.21.md) -* [1.7.20 Release](build-1.7.20.md) +* [1.7.21](build-1.7.21.md) +* [1.7.20](build-1.7.20.md)