| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- name: Build slim packages
- concurrency:
- group: slim-${{ github.event_name }}-${{ github.ref }}
- cancel-in-progress: true
- on:
- workflow_call:
- workflow_dispatch:
- inputs:
- ref:
- required: false
- permissions:
- contents: read
- jobs:
- linux:
- runs-on: ${{ github.repository_owner == 'emqx' && fromJSON(format('["self-hosted","ephemeral","linux","{0}"]', matrix.profile[2])) || 'ubuntu-22.04' }}
- env:
- PROFILE: ${{ matrix.profile[0] }}
- ELIXIR: ${{ matrix.profile[1] == 'elixir' && 'yes' || 'no' }}
- ARCH: ${{ matrix.profile[2] == 'x64' && 'amd64' || 'arm64' }}
- BUILDER_SYSTEM: force_docker
- strategy:
- fail-fast: false
- matrix:
- profile:
- - ["emqx", "elixir", "x64"]
- - ["emqx", "elixir", "arm64"]
- - ["emqx-enterprise", "erlang", "x64"]
- steps:
- - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- with:
- fetch-depth: 0
- - name: build tgz
- run: |
- ./scripts/buildx.sh --profile $PROFILE --pkgtype tgz --elixir $ELIXIR --arch $ARCH
- - name: build pkg
- run: |
- ./scripts/buildx.sh --profile $PROFILE --pkgtype pkg --elixir $ELIXIR --arch $ARCH
- - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
- with:
- name: "${{ matrix.profile[0] }}-${{ matrix.profile[1] }}-${{ matrix.profile[2] }}"
- path: _packages/${{ matrix.profile[0] }}/*
- retention-days: 7
- compression-level: 0
- - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
- with:
- name: "${{ matrix.profile[0] }}-schema-dump-${{ matrix.profile[1] }}-${{ matrix.profile[2] }}"
- path: |
- scripts/spellcheck
- _build/docgen/${{ matrix.profile[0] }}/schema-en.json
- retention-days: 7
- mac:
- strategy:
- fail-fast: false
- matrix:
- profile:
- - emqx
- os:
- - macos-14-arm64
- runs-on: ${{ matrix.os }}
- env:
- EMQX_NAME: ${{ matrix.profile }}
- steps:
- - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- - name: Set up environment
- id: env
- run: |
- source env.sh
- echo "OTP_VSN=$OTP_VSN" >> "$GITHUB_OUTPUT"
- - uses: ./.github/actions/package-macos
- with:
- profile: ${{ matrix.profile }}
- otp: ${{ steps.env.outputs.OTP_VSN }}
- 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@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
- with:
- name: ${{ matrix.os }}
- path: _packages/**/*
- retention-days: 7
|