From 457017f8216217017e15f07643c731e0f29f6c07 Mon Sep 17 00:00:00 2001 From: peefy Date: Fri, 12 Jul 2024 08:28:59 +0800 Subject: [PATCH] chore: bump kcl to 0.9 Signed-off-by: peefy --- .github/workflows/ci.yaml | 2 +- WORKSPACE.bazel | 4 ++-- examples/hello_world/MODULE.bazel | 2 +- examples/hello_world/WORKSPACE.bazel | 4 ++-- kcl/private/versions.bzl | 18 +++++++++--------- kcl/repositories.bzl | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cd2b332..af45714 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,7 +18,7 @@ jobs: warnings: -function-docstring,-module-docstring buildifier_version: 6.1.0 build-test: - runs-on: ubuntu-latest + runs-on: [ubuntu-latest, macos-latest, macos-12] steps: - name: Check out VCS repository uses: actions/checkout@v3 diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 16eddd9..ef164c1 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -10,8 +10,8 @@ load("//kcl:repositories.bzl", "kcl_register_toolchains", "rules_kcl_dependencie rules_kcl_dependencies() kcl_register_toolchains( - name = "kcl_0_7_4", - kcl_version = "0.7.4", + name = "kcl_0_9_1", + kcl_version = "0.9.1", ) load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") diff --git a/examples/hello_world/MODULE.bazel b/examples/hello_world/MODULE.bazel index 03600c1..3dff145 100644 --- a/examples/hello_world/MODULE.bazel +++ b/examples/hello_world/MODULE.bazel @@ -9,7 +9,7 @@ bazel_dep(name = "org_kcl_lang_rules_kcl", version = "0.0.0") kcl = use_extension("@org_kcl_lang_rules_kcl//kcl:extensions.bzl", "kcl") kcl.toolchain( name = "kcl", - kcl_version = "0.7.4", + kcl_version = "0.9.1", ) use_repo(kcl, "kcl_toolchains") diff --git a/examples/hello_world/WORKSPACE.bazel b/examples/hello_world/WORKSPACE.bazel index 452dd70..723dfb6 100644 --- a/examples/hello_world/WORKSPACE.bazel +++ b/examples/hello_world/WORKSPACE.bazel @@ -24,6 +24,6 @@ load("@org_kcl_lang_rules_kcl//kcl:repositories.bzl", "kcl_register_toolchains", rules_kcl_dependencies() kcl_register_toolchains( - name = "kcl_0_7_4", - kcl_version = "0.7.4", + name = "kcl_0_9_1", + kcl_version = "0.9.1", ) diff --git a/kcl/private/versions.bzl b/kcl/private/versions.bzl index afe3fe1..eb0c01e 100644 --- a/kcl/private/versions.bzl +++ b/kcl/private/versions.bzl @@ -1,20 +1,20 @@ TOOL_VERSIONS = { - "0.7.4": { + "0.9.1": { "kcl-amd64-darwin": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.7.4/kcl-v0.7.4-darwin-amd64.tar.gz", - "sha256": "9368b4c72c139404d9a1449eb02ccebac724391d69592caf9b9e8d4cea45191b", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-darwin-amd64.tar.gz", + "sha256": "d58667b43eccf69a5ff19bbc7ca3224e2a04b5345dcccc198746371c719b7f1a", }, "kcl-arm64-darwin": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.7.4/kcl-v0.7.4-darwin-arm64.tar.gz", - "sha256": "0d3bfddfe791a3fd14a65ee46ba8e7a43336041f00557e9518ee881306717821", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-darwin-arm64.tar.gz", + "sha256": "5a6fb38300cfee95a178795d876a62f4ec9e1fc6405306e49b736207e3d54571", }, "kcl-amd64-linux": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.7.4/kcl-v0.7.4-linux-amd64.tar.gz", - "sha256": "c2516227c417e0635c9ffd0112e477997ed02e96f6b3fad5e1c227c2e502052b", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-linux-amd64.tar.gz", + "sha256": "1e2bb6ea02165416dddd56c6d60f7df1da642b928a476e227ee7286e58257c57", }, "kcl-arm64-linux": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.7.4/kcl-v0.7.4-linux-amd64.tar.gz", - "sha256": "65f9ce863465600237d6117a11e16d5ced1567ccdf74563cad7d5a64dadc5988", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-linux-amd64.tar.gz", + "sha256": "23e9ac56372ea6c84e614075ad7a348ba4901991136969e6970abcd9dd5e824b", }, }, } diff --git a/kcl/repositories.bzl b/kcl/repositories.bzl index a6dd40f..763fab8 100644 --- a/kcl/repositories.bzl +++ b/kcl/repositories.bzl @@ -67,7 +67,7 @@ kcl_repositories = repository_rule( def kcl_register_toolchains(name, kcl_version, register = True, **kwargs): """Convenience macro for users which does typical setup. - - create a repository for each built-in platform like "kcl-v0.7.4-darwin-amd64.tar.gz" - + - create a repository for each built-in platform like "kcl-v0.9.1-darwin-amd64.tar.gz" - this repository is lazily fetched when KCL is needed for that platform. - create a repository exposing toolchains for each platform like "kcl_platforms" - register a toolchain pointing at each platform