-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reintegrate the compiler CLI into this repo, implement toolchains, an…
…d update all the things (#55) * Update all the things, update to annex latest, and add worker support Heads up that there's a circular dependency between the cli repo and this repo, so things will be broken until the new cli gets published and then another commit to this repo is made. * Use toolchains instead of bind * Move the Play Routes Compiler CLI back into this repo and improve toolchains * Drop Bazel 6 support and update Bazel 7 version * Support path mapping and better support cancellation
- Loading branch information
Showing
64 changed files
with
14,057 additions
and
8,928 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
bazelbuild/4.2.4 | ||
bazelbuild/7.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,37 @@ jobs: | |
USE_BAZEL_VERSION: ${{ matrix.bazel_version }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
bazel_version: [bazelbuild/4.2.4] | ||
os: [ubuntu-24.04] | ||
bazel_version: [bazelbuild/7.3.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- run: npm install -g @bazel/bazelisk | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-version: 1.20.0 | ||
- run: cat .bazelrc.ci >> .bazelrc | ||
- run: ./scripts/format.sh check | ||
- run: ./test/run_all_tests.sh ci | ||
- run: ./scripts/gen-docs.sh && git diff --exit-code docs/ | ||
- run: bazel shutdown | ||
|
||
publish: | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
needs: build-and-test | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-version: 1.20.0 | ||
- run: cat .bazelrc.ci >> .bazelrc | ||
- name: Import gpg keys | ||
run: echo "$PGP_SECRET" | base64 --decode | gpg --import | ||
env: | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
- name: Publish to Maven | ||
run: ./scripts/publish.sh | ||
env: | ||
MAVEN_USER: ${{ secrets.SONATYPE_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") | ||
load( | ||
"@rules_java//toolchains:default_java_toolchain.bzl", | ||
"DEFAULT_JAVACOPTS", | ||
"DEFAULT_TOOLCHAIN_CONFIGURATION", | ||
"default_java_toolchain", | ||
) | ||
|
||
default_java_toolchain( | ||
name = "repository_default_toolchain_21", | ||
configuration = DEFAULT_TOOLCHAIN_CONFIGURATION, | ||
java_runtime = "@rules_java//toolchains:remotejdk_21", | ||
javac_supports_worker_multiplex_sandboxing = True, | ||
# some of the default options make scala compilation fail in the test package | ||
misc = [opt for opt in DEFAULT_JAVACOPTS if not opt.startswith("-Xep")], | ||
source_version = "21", | ||
target_version = "21", | ||
) | ||
|
||
buildifier( | ||
name = "buildifier", | ||
) | ||
|
||
buildifier( | ||
name = "buildifier_check", | ||
mode = "check", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
############################################################################### | ||
# Bazel now uses Bzlmod by default to manage external dependencies. | ||
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. | ||
# | ||
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 | ||
############################################################################### |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.