diff --git a/.bazelrc b/.bazelrc index cb9dfc1..cfde22e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba70e93..3c3df9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/examples/.bazelrc b/examples/.bazelrc index 0d5e52c..39834cc 100644 --- a/examples/.bazelrc +++ b/examples/.bazelrc @@ -1 +1,8 @@ build --incompatible_use_platforms_repo_for_constraints + +# CI +common:ci --announce_rc + +build:ci --jobs 2 + +build:ci --verbose_failures