elixir_release.yml 959 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. build:
  11. runs-on: ubuntu-latest
  12. container: ghcr.io/emqx/emqx-builder/5.0-3:24.1.5-3-alpine3.14
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v2.4.0
  16. - name: setup mix
  17. run: |
  18. mix local.hex --force
  19. mix local.rebar --force
  20. mix deps.get
  21. - name: produce emqx.conf.all template
  22. run: make conf-segs
  23. - name: elixir release
  24. run: mix release --overwrite
  25. - name: start release
  26. run: |
  27. cd _build/dev/rel/emqx
  28. bin/emqx start
  29. - name: check if started
  30. run: |
  31. sleep 10
  32. nc -zv localhost 1883
  33. cd _build/dev/rel/emqx
  34. bin/emqx ping
  35. bin/emqx ctl status