49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
# FIXME: temporary workflow for testing; remove later
|
|
name: Elixir Build (temporary)
|
|
|
|
concurrency:
|
|
group: mix-${{ github.event_name }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
elixir_release_build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
otp:
|
|
- 24.2.1-1
|
|
elixir:
|
|
- 1.13.4
|
|
os:
|
|
- ubuntu20.04
|
|
profile:
|
|
- emqx
|
|
- emqx-enterprise
|
|
container: ghcr.io/emqx/emqx-builder/5.0-17:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: install tools
|
|
run: apt update && apt install netcat-openbsd
|
|
- name: Work around https://github.com/actions/checkout/issues/766
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
- name: elixir release
|
|
run: make ${{ matrix.profile }}-elixir
|
|
- name: start release
|
|
run: |
|
|
cd _build/${{ matrix.profile }}/rel/emqx
|
|
bin/emqx start
|
|
- name: check if started
|
|
run: |
|
|
sleep 10
|
|
nc -zv localhost 1883
|
|
cd _build/${{ matrix.profile }}/rel/emqx
|
|
bin/emqx ping
|
|
bin/emqx ctl status
|