-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel-erlang has been renamed rules_erlang. v2 is a substantial refactor that brings Windows support. While this alone isn't enough to run all rabbitmq-server suites on windows, one can at least now start the broker (bazel run broker) and run the tests that do not start a background broker process
- Loading branch information
Showing
72 changed files
with
1,330 additions
and
918 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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Test Windows | ||
on: | ||
push: | ||
paths: | ||
- 'deps/**' | ||
- 'scripts/**' | ||
- Makefile | ||
- plugins.mk | ||
- rabbitmq-components.mk | ||
- .bazelrc | ||
- .bazelversion | ||
- BUILD.* | ||
- '*.bzl' | ||
- '*.bazel' | ||
- .github/workflows/test-windows.yaml | ||
jobs: | ||
test: | ||
name: Test Windows | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
erlang_version: | ||
#! - "23" | ||
- "24" | ||
timeout-minutes: 120 | ||
steps: | ||
- name: CHECKOUT REPOSITORY | ||
uses: actions/[email protected] | ||
- name: CONFIGURE ERLANG | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{ matrix.erlang_version }} | ||
elixir-version: 1.12.3 | ||
#! - name: MOUNT BAZEL CACHE | ||
#! uses: actions/cache@v1 | ||
#! with: | ||
#! path: "/home/runner/repo-cache/" | ||
#! key: repo-cache | ||
- name: CONFIGURE BAZEL | ||
shell: bash | ||
run: | | ||
ERL_PATH="$(which erl)" | ||
IEX_PATH="$(which iex)" | ||
cat << EOF >> user.bazelrc | ||
startup --windows_enable_symlinks | ||
build --enable_runfiles | ||
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} | ||
build:buildbuddy --build_metadata=ROLE=CI | ||
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC | ||
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-windows-${{ matrix.erlang_version }} | ||
# build:buildbuddy --repository_cache=/home/runner/repo-cache/ | ||
build:buildbuddy --color=yes | ||
build:buildbuddy --disk_cache= | ||
build --@rules_erlang//:erlang_version=${{ matrix.erlang_version }} | ||
build --@rules_erlang//:erlang_home="${ERL_PATH/\/bin\/erl/}" | ||
build --//:elixir_home="${IEX_PATH/\/bin\/iex/}" | ||
EOF | ||
bazelisk info release | ||
- name: RUN TESTS | ||
run: bazelisk test //... --config=buildbuddy --test_tag_filters=-exclusive,-aws,-bats,-starts-background-broker --build_tests_only --verbose_failures |
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,33 +1,33 @@ | ||
name: Update bazel-erlang | ||
name: Update rules_erlang | ||
on: | ||
schedule: | ||
- cron: '0 3 * * *' | ||
workflow_dispatch: | ||
jobs: | ||
update-bazel-erlang: | ||
name: Update bazel-erlang | ||
update-rules_erlang: | ||
name: Update rules_erlang | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: CHECKOUT REPOSITORY | ||
uses: actions/[email protected] | ||
with: | ||
path: rabbitmq-server | ||
- name: CHECKOUT bazel-erlang | ||
- name: CHECKOUT rules_erlang | ||
uses: actions/[email protected] | ||
with: | ||
repository: rabbitmq/bazel-erlang | ||
path: bazel-erlang | ||
repository: rabbitmq/rules_erlang | ||
path: rules_erlang | ||
- name: DETERMINE LATEST COMMIT | ||
id: find-commit | ||
working-directory: bazel-erlang | ||
working-directory: rules_erlang | ||
run: | | ||
echo "::set-output name=SHA::$(git rev-parse HEAD)" | ||
- name: UPDATE bazel-erlang COMMIT | ||
- name: UPDATE rules_erlang COMMIT | ||
working-directory: rabbitmq-server | ||
run: | | ||
sudo npm install --global --silent @bazel/buildozer | ||
echo "$(cat WORKSPACE.bazel | npx buildozer 'set commit "${{ steps.find-commit.outputs.SHA }}"' -:bazel-erlang)" > WORKSPACE.bazel | ||
echo "$(cat WORKSPACE.bazel | npx buildozer 'set commit "${{ steps.find-commit.outputs.SHA }}"' -:rules_erlang)" > WORKSPACE.bazel | ||
git diff | ||
- name: CREATE PULL REQUEST | ||
uses: peter-evans/create-pull-request@v3 | ||
|
@@ -36,10 +36,10 @@ jobs: | |
committer: GitHub <[email protected]> | ||
author: GitHub <[email protected]> | ||
path: rabbitmq-server | ||
title: Adopt latest bazel-erlang | ||
title: Adopt latest rules_erlang | ||
commit-message: | | ||
Adopt latest bazel-erlang | ||
Adopt latest rules_erlang | ||
- bazel-erlang@${{ steps.find-commit.outputs.SHA }} | ||
branch: bump-bazel-erlang | ||
- rules_erlang@${{ steps.find-commit.outputs.SHA }} | ||
branch: bump-rules_erlang | ||
delete-branch: true |
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
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
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
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.