Skip to content

Commit

Permalink
CI: various cleanups around examples and CI (#33)
Browse files Browse the repository at this point in the history
Summary:
- chore: fix typo and reuse the upstream constraint
- chore: ignore MODULE.bazel.lock
- chore: use latest bazel version by default
- chore: use the latest platforms package
- ci: change the tested examples
- chore: remove bzlmod example
- chore: add MODULE.bazel to remaining examples
  • Loading branch information
aignas committed Jan 9, 2024
1 parent 81c743a commit 938741f
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 694 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.0.0
3 changes: 1 addition & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ jobs:
strategy:
matrix:
example:
- bzlmod
- check_glob
- released_example
- optional_attributes

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bazel-*
user.bazelrc
/release/
MODULE.bazel.lock
7 changes: 3 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,18 @@ alias(
visibility = ["//:__subpackages__"],
)

constraint_setting(name = "cpu")
constraint_value(
name = "armv6hf",
constraint_setting = ":cpu",
constraint_setting = "@platforms//cpu",
)

# rasberry pi
# Raspberry Pi
config_setting(
name = "linux_armv6hf",
constraint_values = [
"@platforms//os:linux",
"//:armv6hf",
]
],
)

config_setting(
Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ module(
compatibility_level = 1,
)

bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "platforms", version = "0.0.8")

deps = use_extension("//internal:extensions.bzl", "shellcheck_dependencies")
use_repo(
deps,
"shellcheck_darwin_aarch64",
"shellcheck_darwin_x86_64",
"shellcheck_linux_x86_64",
"shellcheck_linux_aarch64",
"shellcheck_linux_armv6hf",
"shellcheck_linux_x86_64",
"shellcheck_windows_x86_64",
)

Expand Down
1 change: 0 additions & 1 deletion examples/bzlmod/.bazeliskrc

This file was deleted.

1 change: 0 additions & 1 deletion examples/bzlmod/.bazelrc

This file was deleted.

1 change: 0 additions & 1 deletion examples/bzlmod/.gitignore

This file was deleted.

15 changes: 0 additions & 15 deletions examples/bzlmod/BUILD.bazel

This file was deleted.

Loading

0 comments on commit 938741f

Please sign in to comment.