Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: add platform bins to root filegroup #162

Merged
merged 2 commits into from
Feb 7, 2025
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
16 changes: 0 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on: # yamllint disable-line rule:truthy

jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
container:
image: t4seame/app:latest
Expand All @@ -20,26 +19,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for rebase

- name: Configure Git Safe Directory
run: |
git config --global --add safe.directory $(pwd)

- name: Set Git user identity
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions"

- name: Fetch main branch
run: |
git fetch origin main

- name: Rebase PR branch onto main
run: |
git rebase origin/main || (git rebase --abort && exit 1)

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ filegroup(
"//com-middleware:bin",
"//examples:bins_filegroup",
"//instrument-cluster:bin",
"//platform:bins_filegroup",
],
)

Expand Down
8 changes: 8 additions & 0 deletions platform/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
filegroup(
name = "bins_filegroup",
srcs = [
"//platform/battery-sensor:bin",
"//platform/temperature-sensor:bin",
],
visibility = ["//:__pkg__"],
)
2 changes: 1 addition & 1 deletion platform/battery-sensor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cc_binary(
linkopts = [
"-lzmq",
],
visibility = ["//:__pkg__"],
visibility = ["//platform:__pkg__"],
deps = [
"//mq",
"@cppzmq",
Expand Down
2 changes: 1 addition & 1 deletion platform/temperature-sensor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cc_binary(
linkopts = [
"-lzmq",
],
visibility = ["//:__pkg__"],
visibility = ["//platform:__pkg__"],
deps = [
"//mq",
"@cppzmq",
Expand Down
Loading