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

Necessary Bazel 7 updates #202

Closed
wants to merge 4 commits into from
Closed
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 .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ run -c opt --show_loading_progress=false --show_progress=false --ui_event_filter
run:verbose -c dbg --show_loading_progress=true --show_progress=true --ui_event_filters='INFO,ERROR,DEBUG'
# https://github.com/mockito/mockito/issues/1879
test --sandbox_tmpfs_path=/tmp
build --java_runtime_version=remotejdk_11
53 changes: 2 additions & 51 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,6 @@ on:
branches: [ master ]

jobs:
test-jre8:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
id: java
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: ^1.17
id: go
- name: Setup Bazelisk
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
- uses: actions/checkout@v3
- name: Run bazel-diff tests
run: USE_BAZEL_VERSION=latest ~/go/bin/bazelisk test //cli/...
- name: archive testlogs
if: always()
run: cp -R $(~/go/bin/bazelisk info bazel-testlogs) ./test-logs; (cd test-logs; zip -r -X ../test-logs.zip .)
- name: Save test logs
uses: actions/upload-artifact@master
if: always()
with:
name: test-logs-jre8
path: test-logs.zip
test-jre8-run-example:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
id: java
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: ^1.17
id: go
- name: Setup Bazelisk
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run bazel-diff example script
run: USE_BAZEL_VERSION=latest ./bazel-diff-example.sh "$GITHUB_WORKSPACE" ~/go/bin/bazelisk $(git rev-parse HEAD~1) $(git rev-parse HEAD)
test-jre11:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -105,11 +56,11 @@ jobs:
- name: Run bazel-diff example script
run: USE_BAZEL_VERSION=latest ./bazel-diff-example.sh "$GITHUB_WORKSPACE" ~/go/bin/bazelisk $(git rev-parse HEAD~1) $(git rev-parse HEAD)
deploy:
needs: [test-jre8, test-jre11]
needs: [test-jre11]
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
java: [ '11' ]
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
Expand Down
8 changes: 8 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
###############################################################################
# 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
###############################################################################

bazel_dep(name = "rules_python", version = "0.27.0")
Loading
Loading