|
|
@@ -16,7 +16,7 @@ env:
|
|
|
|
|
|
jobs:
|
|
|
sanity-checks:
|
|
|
- runs-on: ${{ fromJSON(github.repository_owner == 'emqx' && '["self-hosted","ephemeral","linux","x64"]' || '["ubuntu-22.04"]') }}
|
|
|
+ runs-on: ubuntu-22.04
|
|
|
container: "ghcr.io/emqx/emqx-builder/5.2-3:1.14.5-25.3.2-2-ubuntu22.04"
|
|
|
outputs:
|
|
|
ct-matrix: ${{ steps.matrix.outputs.ct-matrix }}
|
|
|
@@ -24,8 +24,6 @@ jobs:
|
|
|
ct-docker: ${{ steps.matrix.outputs.ct-docker }}
|
|
|
version-emqx: ${{ steps.matrix.outputs.version-emqx }}
|
|
|
version-emqx-enterprise: ${{ steps.matrix.outputs.version-emqx-enterprise }}
|
|
|
- runner_labels: ${{ github.repository_owner == 'emqx' && '["self-hosted","ephemeral","linux","x64"]' || '["ubuntu-22.04"]' }}
|
|
|
- xl_runner_labels: ${{ github.repository_owner == 'emqx' && '["self-hosted","ephemeral-xl","linux","x64"]' || '["ubuntu-22.04"]' }}
|
|
|
builder: "ghcr.io/emqx/emqx-builder/5.2-3:1.14.5-25.3.2-2-ubuntu22.04"
|
|
|
builder_vsn: "5.2-3"
|
|
|
otp_vsn: "25.3.2-2"
|
|
|
@@ -116,7 +114,7 @@ jobs:
|
|
|
echo "version-emqx-enterprise=$(./pkg-vsn.sh emqx-enterprise)" | tee -a $GITHUB_OUTPUT
|
|
|
|
|
|
compile:
|
|
|
- runs-on: ${{ fromJSON(needs.sanity-checks.outputs.xl_runner_labels) }}
|
|
|
+ runs-on: ${{ endsWith(github.repository, '/emqx') && 'ubuntu-22.04' || fromJSON('["self-hosted","ephemeral-xl","linux","x64"]') }}
|
|
|
container: ${{ needs.sanity-checks.outputs.builder }}
|
|
|
needs:
|
|
|
- sanity-checks
|
|
|
@@ -154,7 +152,6 @@ jobs:
|
|
|
- compile
|
|
|
uses: ./.github/workflows/run_emqx_app_tests.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.xl_runner_labels }}
|
|
|
builder: ${{ needs.sanity-checks.outputs.builder }}
|
|
|
before_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
|
|
|
after_ref: ${{ github.sha }}
|
|
|
@@ -165,7 +162,6 @@ jobs:
|
|
|
- compile
|
|
|
uses: ./.github/workflows/run_test_cases.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
builder: ${{ needs.sanity-checks.outputs.builder }}
|
|
|
ct-matrix: ${{ needs.sanity-checks.outputs.ct-matrix }}
|
|
|
ct-host: ${{ needs.sanity-checks.outputs.ct-host }}
|
|
|
@@ -177,7 +173,6 @@ jobs:
|
|
|
- compile
|
|
|
uses: ./.github/workflows/static_checks.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
builder: ${{ needs.sanity-checks.outputs.builder }}
|
|
|
ct-matrix: ${{ needs.sanity-checks.outputs.ct-matrix }}
|
|
|
|
|
|
@@ -186,7 +181,6 @@ jobs:
|
|
|
- sanity-checks
|
|
|
uses: ./.github/workflows/build_slim_packages.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
builder: ${{ needs.sanity-checks.outputs.builder }}
|
|
|
builder_vsn: ${{ needs.sanity-checks.outputs.builder_vsn }}
|
|
|
otp_vsn: ${{ needs.sanity-checks.outputs.otp_vsn }}
|
|
|
@@ -197,7 +191,6 @@ jobs:
|
|
|
- sanity-checks
|
|
|
uses: ./.github/workflows/build_docker_for_test.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
otp_vsn: ${{ needs.sanity-checks.outputs.otp_vsn }}
|
|
|
elixir_vsn: ${{ needs.sanity-checks.outputs.elixir_vsn }}
|
|
|
version-emqx: ${{ needs.sanity-checks.outputs.version-emqx }}
|
|
|
@@ -208,8 +201,6 @@ jobs:
|
|
|
- sanity-checks
|
|
|
- build_slim_packages
|
|
|
uses: ./.github/workflows/spellcheck.yaml
|
|
|
- with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
|
|
|
run_conf_tests:
|
|
|
needs:
|
|
|
@@ -217,7 +208,6 @@ jobs:
|
|
|
- compile
|
|
|
uses: ./.github/workflows/run_conf_tests.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
builder: ${{ needs.sanity-checks.outputs.builder }}
|
|
|
|
|
|
check_deps_integrity:
|
|
|
@@ -225,7 +215,6 @@ jobs:
|
|
|
- sanity-checks
|
|
|
uses: ./.github/workflows/check_deps_integrity.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
builder: ${{ needs.sanity-checks.outputs.builder }}
|
|
|
|
|
|
run_jmeter_tests:
|
|
|
@@ -234,7 +223,6 @@ jobs:
|
|
|
- build_docker_for_test
|
|
|
uses: ./.github/workflows/run_jmeter_tests.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
version-emqx: ${{ needs.sanity-checks.outputs.version-emqx }}
|
|
|
|
|
|
run_docker_tests:
|
|
|
@@ -243,7 +231,6 @@ jobs:
|
|
|
- build_docker_for_test
|
|
|
uses: ./.github/workflows/run_docker_tests.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
version-emqx: ${{ needs.sanity-checks.outputs.version-emqx }}
|
|
|
version-emqx-enterprise: ${{ needs.sanity-checks.outputs.version-emqx-enterprise }}
|
|
|
|
|
|
@@ -253,6 +240,5 @@ jobs:
|
|
|
- build_docker_for_test
|
|
|
uses: ./.github/workflows/run_helm_tests.yaml
|
|
|
with:
|
|
|
- runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
|
|
version-emqx: ${{ needs.sanity-checks.outputs.version-emqx }}
|
|
|
version-emqx-enterprise: ${{ needs.sanity-checks.outputs.version-emqx-enterprise }}
|