Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Can be triggered from the release.yaml workflow
workflow_call:
concurrency:
# Cancel previous actions from the same PR or branch except 'main' branch.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency and https://docs.github.com/en/actions/learn-github-actions/contexts for more info.
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ permissions:
attestations: write
contents: write
jobs:
ci:
uses: ./.github/workflows/ci.yaml
release:
needs: ci
uses: bazel-contrib/.github/.github/workflows/[email protected]
with:
release_files: rules_devicetree-*.tar.gz
prerelease: false
tag_name: ${{ inputs.tag_name || github.ref_name }}
# We don't need to run tests; `needs: ci` above already does this.
bazel_test_command: true
publish:
# TODO: #5 - re-enable auto-publishing after release
if: false
needs: release
uses: ./.github/workflows/publish.yaml
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')

cat << EOF
## Using Bzlmod with Bazel 6 or greater
## Using Bzlmod with Bazel 7 or greater

1. (Bazel 6 only) Enable with \`common --enable_bzlmod\` in \`.bazelrc\`.
2. Add to your \`MODULE.bazel\` file:
Add to your \`MODULE.bazel\` file:

\`\`\`starlark
bazel_dep(name = "rules_devicetree", version = "${TAG:1}")
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: smlx/ccv@7318e2f25a52dcd550e75384b84983973251a1f8 # v0.10.0
release:
needs: tag
uses: ./.github/workflows/release.yml
uses: ./.github/workflows/release.yaml
with:
tag_name: ${{ needs.tag.outputs.new-tag-version }}
secrets:
Expand Down
9 changes: 4 additions & 5 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Installation (Bzlmod)

Note: There are currently no version registered against Bazel Central Registry,
so `bazel_dep()` alone does not work yet. This will work later once we have a
stable release.

Note: Please update the version accordingly.
Please update the version accordingly.
For the most recent release, refer to
[https://registry.bazel.build/modules/rules_devicetree](https://registry.bazel.build/modules/rules_devicetree)
to update the version.

```starlark
bazel_dep(
Expand Down
Loading