diff --git a/.github/workflows/check-build-system-equivalence-release-branches.yaml b/.github/workflows/check-build-system-equivalence-release-branches.yaml new file mode 100644 index 000000000000..bc29ce9f1d73 --- /dev/null +++ b/.github/workflows/check-build-system-equivalence-release-branches.yaml @@ -0,0 +1,28 @@ +name: Check Bazel/Erlang.mk Equivalence (Matrix) +on: + schedule: + - cron: '0 2 * * *' +jobs: + check-main: + uses: ./.github/workflows/check-build-system-equivalence.yaml + with: + ref: main + erlang_version: 26.0 + elixir_version: 1.15 + project_version: 3.13.0 + + check-v3_12_x: + uses: ./.github/workflows/check-build-system-equivalence.yaml + with: + ref: v3.12.x + erlang_version: 26.0 + elixir_version: 1.15 + project_version: 3.12.0 + + check-v3_11_x: + uses: ./.github/workflows/check-build-system-equivalence.yaml + with: + ref: v3.11.x + erlang_version: 26.0 + elixir_version: 1.15 + project_version: 3.11.0 diff --git a/.github/workflows/check-build-system-equivalence.yaml b/.github/workflows/check-build-system-equivalence.yaml index f6fedd9f0c66..494f8f692a25 100644 --- a/.github/workflows/check-build-system-equivalence.yaml +++ b/.github/workflows/check-build-system-equivalence.yaml @@ -1,12 +1,37 @@ name: Check Bazel/Erlang.mk Equivalence on: - schedule: - - cron: '0 2 * * *' + workflow_call: + inputs: + ref: + required: true + type: string + erlang_version: + required: true + type: string + elixir_version: + required: true + type: string + project_version: + required: true + type: string workflow_dispatch: + inputs: + erlang_version: + description: 'OTP version to build with' + required: true + default: "26.0" + elixir_version: + description: 'Elixir version to build with' + required: true + default: "1.15" + project_version: + description: 'PROJECT_VERSION used for make' + required: true + default: "3.13.0" env: - erlang_version: 26.0 - elixir_version: 1.15 - VERSION: 3.13.0 + erlang_version: ${{ inputs.erlang_version || github.event.inputs.erlang_version }} + elixir_version: ${{ inputs.elixir_version || github.event.inputs.elixir_version }} + VERSION: ${{ inputs.project_version || github.event.inputs.project_version }} PLUGINS: amqp10_common amqp10_client rabbitmq_amqp1_0 rabbitmq_auth_backend_cache rabbitmq_auth_backend_http rabbitmq_auth_backend_ldap rabbitmq_auth_backend_oauth2 rabbitmq_auth_mechanism_ssl rabbitmq_consistent_hash_exchange rabbitmq_event_exchange rabbitmq_federation rabbitmq_jms_topic_exchange rabbitmq_mqtt rabbitmq_random_exchange rabbitmq_recent_history_exchange rabbitmq_sharding rabbitmq_shovel rabbitmq_stomp rabbitmq_stream rabbitmq_trust_store rabbitmq_web_dispatch rabbitmq_management_agent rabbitmq_management rabbitmq_prometheus rabbitmq_federation_management rabbitmq_shovel_management rabbitmq_stream_management rabbitmq_top rabbitmq_tracing rabbitmq_web_mqtt rabbitmq_web_mqtt_examples rabbitmq_web_stomp rabbitmq_web_stomp_examples rabbitmq_aws rabbitmq_peer_discovery_common rabbitmq_peer_discovery_aws rabbitmq_peer_discovery_k8s rabbitmq_peer_discovery_consul rabbitmq_peer_discovery_etcd EXTRA_PLUGINS: accept amqp_client aten base64url cowboy cowlib credentials_obfuscation cuttlefish eetcd enough gen_batch_server getopt gun jose observer_cli osiris prometheus quantile_estimator ra ranch recon redbug seshat stdout_formatter syslog sysmon_handler systemd thoas jobs: @@ -17,6 +42,8 @@ jobs: steps: - name: CHECKOUT REPOSITORY uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.ref || github.ref }} - name: CONFIGURE ERLANG uses: erlef/setup-beam@v1.16 with: @@ -50,6 +77,7 @@ jobs: uses: actions/checkout@v3 with: path: rabbitmq + ref: ${{ github.event.inputs.ref || github.ref }} - name: CONFIGURE ERLANG uses: erlef/setup-beam@v1.16 with: @@ -87,6 +115,7 @@ jobs: uses: actions/checkout@v3 with: path: rabbitmq-server + ref: ${{ github.event.inputs.ref || github.ref }} - name: CONFIGURE ERLANG uses: erlef/setup-beam@v1.16 with: