elixir_release.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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-latest
  12. strategy:
  13. matrix:
  14. otp:
  15. - 24.2.1-1
  16. elixir:
  17. - 1.13.4
  18. os:
  19. - ubuntu20.04
  20. profile:
  21. - emqx
  22. - emqx-enterprise
  23. container: ghcr.io/emqx/emqx-builder/5.0-17:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}
  24. steps:
  25. - name: Checkout
  26. uses: actions/checkout@v2
  27. - name: install tools
  28. run: apt update && apt install netcat-openbsd
  29. - name: Work around https://github.com/actions/checkout/issues/766
  30. run: |
  31. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  32. - name: elixir release
  33. run: make ${{ matrix.profile }}-elixir
  34. - name: start release
  35. run: |
  36. cd _build/${{ matrix.profile }}/rel/emqx
  37. bin/emqx start
  38. - name: check if started
  39. run: |
  40. sleep 10
  41. nc -zv localhost 1883
  42. cd _build/${{ matrix.profile }}/rel/emqx
  43. bin/emqx ping
  44. bin/emqx ctl status