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

Dart proto dependencies via overlays #62

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.4.0
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install bazel
run: tools/install_deps.sh
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel

- name: Run tests
run: tools/run_tests.sh
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ with [Bazel](https://bazel.build).
Setup
-----

Make sure Bazel is installed on your system. See the [Bazel
documentation](https://docs.bazel.build/versions/master/install.html) for
platform-specific instructions. We recommend using [Bazelisk](
https://bazel.build/install/bazelisk.html) to ensure you are using a supported
version.

To use the Dart rules, add the following to your `WORKSPACE` file to add the
external repositories for the Dart toolchain:

Expand Down Expand Up @@ -70,3 +76,9 @@ load("@io_bazel_rules_dart//dart/build_rules:web.bzl", RULE_NAME)
`dart_web_application`: Compiles the specified script to JavaScript.

`dart_web_test`: Builds a test that will be executed in the browser.


Protocol Buffer rules
---------------------

`dart_proto_library`: Generates Dart implementations of `.proto` dependencies.
6 changes: 6 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ workspace(name = "io_bazel_rules_dart")

load("//dart/build_rules:repositories.bzl", "dart_repositories")
dart_repositories()

load("//dart/build_rules:repositories.bzl", "proto_repositories")
proto_repositories()

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
Loading