From 79ec2875bdc6fce62e490c845b44477b15df45ec Mon Sep 17 00:00:00 2001 From: dongchangYoo Date: Mon, 13 May 2024 13:48:56 +0900 Subject: [PATCH 1/2] build: update tachyon version for releasing v0.2.0 --- bazel/tachyon.bzl | 2 +- docker/Dockerfile.halo2.jammy | 12 ++++++------ docs/how_to_use/how_to_build.md | 12 ++++++------ tachyon/c/version.bzl | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/bazel/tachyon.bzl b/bazel/tachyon.bzl index 6b04e502b..4f1baf4a3 100644 --- a/bazel/tachyon.bzl +++ b/bazel/tachyon.bzl @@ -3,7 +3,7 @@ load("@local_config_rocm//rocm:build_defs.bzl", "if_rocm_is_configured") # See https://semver.org/ VERSION_MAJOR = 0 -VERSION_MINOR = 1 +VERSION_MINOR = 2 VERSION_PATCH = 0 VERSION_PRERELEASE = "" VERSION = ".".join([str(VERSION_MAJOR), str(VERSION_MINOR), str(VERSION_PATCH)]) diff --git a/docker/Dockerfile.halo2.jammy b/docker/Dockerfile.halo2.jammy index 6b762416f..ae2127abe 100644 --- a/docker/Dockerfile.halo2.jammy +++ b/docker/Dockerfile.halo2.jammy @@ -10,15 +10,15 @@ RUN bazel build -c opt --config linux --config halo2 --//:has_openmp --//:c_shar FROM ubuntu:jammy AS tachyon-halo2 LABEL maintainer="The Tachyon Authors " -COPY --from=builder /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.1.0_amd64.deb /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.1.0_amd64.deb -COPY --from=builder /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.1.0_amd64.deb /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.1.0_amd64.deb +COPY --from=builder /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.2.0_amd64.deb /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.2.0_amd64.deb +COPY --from=builder /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.2.0_amd64.deb /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.2.0_amd64.deb RUN apt update && \ apt install -y --no-install-recommends \ libgmp-dev \ libomp-dev && \ rm -rf /var/lib/apt/lists/* -RUN dpkg -i /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.1.0_amd64.deb && \ - dpkg -i /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.1.0_amd64.deb && \ - rm /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.1.0_amd64.deb && \ - rm /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.1.0_amd64.deb +RUN dpkg -i /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.2.0_amd64.deb && \ + dpkg -i /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.2.0_amd64.deb && \ + rm /usr/src/tachyon/bazel-bin/scripts/packages/debian/runtime/libtachyon_0.2.0_amd64.deb && \ + rm /usr/src/tachyon/bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.2.0_amd64.deb diff --git a/docs/how_to_use/how_to_build.md b/docs/how_to_use/how_to_build.md index b8fe86bd8..5e1219384 100644 --- a/docs/how_to_use/how_to_build.md +++ b/docs/how_to_use/how_to_build.md @@ -187,11 +187,11 @@ There are two ways to install the Tachyon package. While it is recommended to in ### Install package from pre-built binaries ```shell -curl -LO https://github.com/kroma-network/tachyon/releases/download/v0.1.0/libtachyon_0.1.0_amd64.deb -curl -LO https://github.com/kroma-network/tachyon/releases/download/v0.1.0/libtachyon-dev_0.1.0_amd64.deb +curl -LO https://github.com/kroma-network/tachyon/releases/download/v0.2.0/libtachyon_0.2.0_amd64.deb +curl -LO https://github.com/kroma-network/tachyon/releases/download/v0.2.0/libtachyon-dev_0.2.0_amd64.deb -sudo dpkg -i libtachyon_0.1.0_amd64.deb -sudo dpkg -i libtachyon-dev_0.1.0_amd64.deb +sudo dpkg -i libtachyon_0.2.0_amd64.deb +sudo dpkg -i libtachyon-dev_0.2.0_amd64.deb ``` ### Build package from source @@ -203,8 +203,8 @@ To build the Halo2 Debian package, `halo2` and `has_openmp` options are recommen bazel build -c opt --config ${os} --config halo2 --//:has_openmp --//:c_shared_object //scripts/packages/debian/runtime:debian bazel build -c opt --config ${os} --config halo2 --//:has_openmp --//:c_shared_object //scripts/packages/debian/dev:debian -sudo dpkg -i bazel-bin/scripts/packages/debian/runtime/libtachyon_0.1.0_amd64.deb -sudo dpkg -i bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.1.0_amd64.deb +sudo dpkg -i bazel-bin/scripts/packages/debian/runtime/libtachyon_0.2.0_amd64.deb +sudo dpkg -i bazel-bin/scripts/packages/debian/dev/libtachyon-dev_0.2.0_amd64.deb ``` ## Other Info diff --git a/tachyon/c/version.bzl b/tachyon/c/version.bzl index 69d9ae3e8..920e5a90b 100644 --- a/tachyon/c/version.bzl +++ b/tachyon/c/version.bzl @@ -1,6 +1,6 @@ # See https://semver.org/ VERSION_MAJOR = 0 -VERSION_MINOR = 1 +VERSION_MINOR = 2 VERSION_PATCH = 0 VERSION_PRERELEASE = "" From 395c0b9210b690d715c49aa6c1655bee7b54bfaf Mon Sep 17 00:00:00 2001 From: dongchangYoo Date: Mon, 13 May 2024 13:53:13 +0900 Subject: [PATCH 2/2] docs: update `how_to_build.md` --- docs/how_to_use/how_to_build.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/how_to_use/how_to_build.md b/docs/how_to_use/how_to_build.md index 5e1219384..d3f99a56e 100644 --- a/docs/how_to_use/how_to_build.md +++ b/docs/how_to_use/how_to_build.md @@ -161,9 +161,9 @@ Tachyon can be built in your own Bazel project with the following two simple ste First, obtain the Tachyon code from a specific commit hash and get a SHA256 value from the fetched code through these commands: ```shell -wget https://github.com/kroma-network/tachyon/archive/c6a38895cb6f9b9f73e3d64928d85a9762b66639.tar.gz +wget https://github.com/kroma-network/tachyon/archive/79ec2875bdc6fce62e490c845b44477b15df45ec.tar.gz -shasum -a 256 c6a38895cb6f9b9f73e3d64928d85a9762b66639.tar.gz +shasum -a 256 79ec2875bdc6fce62e490c845b44477b15df45ec.tar.gz ``` Second, input the shasum output into your `WORKSPACE` file as the `sha256` argument like shown below: @@ -174,9 +174,9 @@ Second, input the shasum output into your `WORKSPACE` file as the `sha256` argum load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "kroma_network_tachyon", - sha256 = "3ebc4edca153c9b93de200d5e22be66d1ff7ea52e2793c83947607c532dfacbc", - strip_prefix = "tachyon-c6a38895cb6f9b9f73e3d64928d85a9762b66639", - urls = ["https://github.com/kroma-network/tachyon/archive/c6a38895cb6f9b9f73e3d64928d85a9762b66639.tar.gz"], + sha256 = "a37fba8082a2c27a4a2f09255cf6c2693836dccbb8a8cea7e327d860115ffd30", + strip_prefix = "tachyon-79ec2875bdc6fce62e490c845b44477b15df45ec", + urls = ["https://github.com/kroma-network/tachyon/archive/79ec2875bdc6fce62e490c845b44477b15df45ec.tar.gz"], ) ```