Skip to content

Commit

Permalink
Merge pull request #3 from kcl-lang/chore-bump-kcl-090
Browse files Browse the repository at this point in the history
chore: bump kcl to 0.9
  • Loading branch information
Peefy authored Jul 12, 2024
2 parents f2bf933 + 457017f commit 50bf606
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
4 changes: 2 additions & 2 deletions examples/hello_world/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
18 changes: 9 additions & 9 deletions kcl/private/versions.bzl
Original file line number Diff line number Diff line change
@@ -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",
},
},
}
2 changes: 1 addition & 1 deletion kcl/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50bf606

Please sign in to comment.