Skip to content

Commit

Permalink
Enable CI Configuration (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertocavalcante authored Sep 28, 2024
1 parent f8fbbb7 commit db14b13
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
build --javacopt="--release 8"

# CI
common:ci --announce_rc

build:ci --jobs 2
test:ci --jobs 2

test:ci --test_output=errors

build:ci --verbose_failures
test:ci --verbose_failures
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ jobs:
- name: Build examples
run: |
cd examples
bazelisk build --jobs 2 //antlr2/Cpp/... //antlr2/Calc/... //antlr2/Python/... //antlr3/Cpp/... //antlr3/Java/... //antlr3/Python2/... //antlr3/Python3/... //antlr4/Cpp/... //antlr4/Go/... //antlr4/Java/... //antlr4/Python2/... //antlr4/Python3/...
bazelisk build --config ci //antlr2/Cpp/... //antlr2/Calc/... //antlr2/Python/... //antlr3/Cpp/... //antlr3/Java/... //antlr3/Python2/... //antlr3/Python3/... //antlr4/Cpp/... //antlr4/Go/... //antlr4/Java/... //antlr4/Python2/... //antlr4/Python3/...
- name: Build antlr4-opt
run: |
cd examples/antlr4-opt
bazelisk build --jobs 2 //...
bazelisk build --config ci //...
- name: Run tests
run: |
bazelisk test --jobs 2 --test_output=errors //...
bazelisk test --config ci //...
- name: Shutdown Bazel
run: bazelisk shutdown
7 changes: 7 additions & 0 deletions examples/.bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
build --incompatible_use_platforms_repo_for_constraints

# CI
common:ci --announce_rc

build:ci --jobs 2

build:ci --verbose_failures
9 changes: 8 additions & 1 deletion examples/antlr4-opt/.bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
common --noenable_bzlmod
common --noenable_bzlmod

# CI
common:ci --announce_rc

build:ci --jobs 2

build:ci --verbose_failures

0 comments on commit db14b13

Please sign in to comment.