elixir_release.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # FIXME: temporary workflow for testing; remove later
  2. name: Elixir Build (temporary)
  3. concurrency:
  4. group: mix-${{ github.event_name }}-${{ github.ref }}
  5. cancel-in-progress: true
  6. on:
  7. pull_request:
  8. workflow_dispatch:
  9. jobs:
  10. elixir_release_build:
  11. runs-on: ubuntu-22.04
  12. strategy:
  13. matrix:
  14. profile:
  15. - emqx
  16. - emqx-enterprise
  17. container: ghcr.io/emqx/emqx-builder/5.1-3:1.14.5-25.3.2-1-ubuntu22.04
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v3
  21. - name: install tools
  22. run: apt update && apt install netcat-openbsd
  23. - name: Work around https://github.com/actions/checkout/issues/766
  24. run: |
  25. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  26. - name: elixir release
  27. run: make ${{ matrix.profile }}-elixir
  28. - name: start release
  29. run: |
  30. cd _build/${{ matrix.profile }}/rel/emqx
  31. bin/emqx start
  32. - name: check if started
  33. run: |
  34. sleep 10
  35. nc -zv localhost 1883
  36. cd _build/${{ matrix.profile }}/rel/emqx
  37. bin/emqx ping
  38. bin/emqx ctl status