| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- name: Build slim packages
- concurrency:
- group: slim-${{ github.event_name }}-${{ github.ref }}
- cancel-in-progress: true
- on:
- workflow_call:
- inputs:
- runner:
- required: true
- type: string
- builder:
- required: true
- type: string
- builder_vsn:
- required: true
- type: string
- otp_vsn:
- required: true
- type: string
- elixir_vsn:
- required: true
- type: string
- workflow_dispatch:
- inputs:
- ref:
- required: false
- runner:
- required: false
- type: string
- default: 'ubuntu-22.04'
- builder:
- required: false
- type: string
- default: 'ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04'
- builder_vsn:
- required: false
- type: string
- default: '5.1-4'
- otp_vsn:
- required: false
- type: string
- default: '25.3.2-2'
- elixir_vsn:
- required: false
- type: string
- default: '1.14.5'
- jobs:
- linux:
- runs-on: ${{ inputs.runner }}
- env:
- EMQX_NAME: ${{ matrix.profile[0] }}
- strategy:
- fail-fast: false
- matrix:
- profile:
- - ["emqx", "25.3.2-2", "ubuntu20.04", "elixir"]
- - ["emqx-enterprise", "25.3.2-2", "ubuntu20.04", "erlang"]
- container: "ghcr.io/emqx/emqx-builder/${{ inputs.builder_vsn }}:${{ inputs.elixir_vsn }}-${{ matrix.profile[1] }}-${{ matrix.profile[2] }}"
- steps:
- - uses: AutoModality/action-clean@v1
- - uses: actions/checkout@v3
- with:
- fetch-depth: 0
- - name: Work around https://github.com/actions/checkout/issues/766
- run: |
- git config --global --add safe.directory "$GITHUB_WORKSPACE"
- echo "CODE_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- - name: build and test tgz package
- if: matrix.profile[3] == 'erlang'
- run: |
- make ${EMQX_NAME}-tgz
- ./scripts/pkg-tests.sh ${EMQX_NAME}-tgz
- - name: build and test deb/rpm packages
- if: matrix.profile[3] == 'erlang'
- run: |
- make ${EMQX_NAME}-pkg
- ./scripts/pkg-tests.sh ${EMQX_NAME}-pkg
- - name: build and test tgz package (Elixir)
- if: matrix.profile[3] == 'elixir'
- run: |
- make ${EMQX_NAME}-elixir-tgz
- ./scripts/pkg-tests.sh ${EMQX_NAME}-elixir-tgz
- - name: build and test deb/rpm packages (Elixir)
- if: matrix.profile[3] == 'elixir'
- run: |
- make ${EMQX_NAME}-elixir-pkg
- ./scripts/pkg-tests.sh ${EMQX_NAME}-elixir-pkg
- - uses: actions/upload-artifact@v3
- with:
- name: "${{ matrix.profile[0] }}-${{ matrix.profile[1] }}-${{ matrix.profile[2] }}"
- path: _packages/${{ matrix.profile[0] }}/*
- retention-days: 7
- - uses: actions/upload-artifact@v3
- with:
- name: "${{ matrix.profile[0] }}_schema_dump"
- path: |
- scripts/spellcheck
- _build/docgen/${{ matrix.profile[0] }}/schema-en.json
- retention-days: 7
- mac:
- strategy:
- fail-fast: false
- matrix:
- profile:
- - emqx
- otp:
- - ${{ inputs.otp_vsn }}
- os:
- - macos-11
- - macos-12-arm64
- runs-on: ${{ matrix.os }}
- env:
- EMQX_NAME: ${{ matrix.profile }}
- steps:
- - uses: actions/checkout@v3
- - uses: ./.github/actions/package-macos
- with:
- profile: ${{ matrix.profile }}
- otp: ${{ matrix.otp }}
- os: ${{ matrix.os }}
- apple_id_password: ${{ secrets.APPLE_ID_PASSWORD }}
- apple_developer_identity: ${{ secrets.APPLE_DEVELOPER_IDENTITY }}
- apple_developer_id_bundle: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE }}
- apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }}
- - uses: actions/upload-artifact@v3
- with:
- name: ${{ matrix.os }}
- path: _packages/**/*
- retention-days: 7
|