build_packages.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. name: Cross build packages
  2. on:
  3. schedule:
  4. - cron: '0 */6 * * *'
  5. release:
  6. types:
  7. - published
  8. workflow_dispatch:
  9. jobs:
  10. prepare:
  11. runs-on: ubuntu-20.04
  12. container: emqx/build-env:erl23.2.7.2-emqx-3-ubuntu20.04
  13. outputs:
  14. profiles: ${{ steps.set_profile.outputs.profiles}}
  15. old_vsns: ${{ steps.set_profile.outputs.old_vsns}}
  16. steps:
  17. - uses: actions/checkout@v2
  18. with:
  19. path: source
  20. fetch-depth: 0
  21. - name: set profile
  22. id: set_profile
  23. shell: bash
  24. run: |
  25. cd source
  26. vsn="$(./pkg-vsn.sh)"
  27. pre_vsn="$(echo $vsn | grep -oE '^[0-9]+.[0-9]')"
  28. if make emqx-ee --dry-run > /dev/null 2>&1; then
  29. old_vsns="$(git tag -l "e$pre_vsn.[0-9]" | xargs echo -n | sed "s/e$vsn//")"
  30. echo "::set-output name=old_vsns::$old_vsns"
  31. echo "::set-output name=profiles::[\"emqx-ee\"]"
  32. else
  33. old_vsns="$(git tag -l "v$pre_vsn.[0-9]" | xargs echo -n | sed "s/v$vsn//")"
  34. echo "::set-output name=old_vsns::$old_vsns"
  35. echo "::set-output name=profiles::[\"emqx\", \"emqx-edge\"]"
  36. fi
  37. - name: get_all_deps
  38. if: endsWith(github.repository, 'emqx')
  39. run: |
  40. make -C source deps-all
  41. zip -ryq source.zip source/* source/.[^.]*
  42. - name: get_all_deps
  43. if: endsWith(github.repository, 'enterprise')
  44. run: |
  45. echo "https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com" > $HOME/.git-credentials
  46. git config --global credential.helper store
  47. echo "${{ secrets.CI_GIT_TOKEN }}" >> source/scripts/git-token
  48. make -C source deps-all
  49. zip -ryq source.zip source/* source/.[^.]*
  50. - uses: actions/upload-artifact@v2
  51. with:
  52. name: source
  53. path: source.zip
  54. windows:
  55. runs-on: windows-2019
  56. needs: prepare
  57. if: endsWith(github.repository, 'emqx')
  58. strategy:
  59. matrix:
  60. profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
  61. exclude:
  62. - profile: emqx-edge
  63. steps:
  64. - uses: actions/download-artifact@v2
  65. with:
  66. name: source
  67. path: .
  68. - name: unzip source code
  69. run: Expand-Archive -Path source.zip -DestinationPath ./
  70. - uses: ilammy/msvc-dev-cmd@v1
  71. - uses: gleam-lang/setup-erlang@v1.1.0
  72. id: install_erlang
  73. with:
  74. otp-version: 23.2
  75. - name: build
  76. env:
  77. PYTHON: python
  78. DIAGNOSTIC: 1
  79. run: |
  80. $env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
  81. $version = $( "${{ github.ref }}" -replace "^(.*)/(.*)/" )
  82. if ($version -match "^v[0-9]+\.[0-9]+(\.[0-9]+)?") {
  83. $regex = "[0-9]+\.[0-9]+(-alpha|-beta|-rc)?\.[0-9]+"
  84. $pkg_name = "${{ matrix.profile }}-windows-$([regex]::matches($version, $regex).value).zip"
  85. }
  86. else {
  87. $pkg_name = "${{ matrix.profile }}-windows-$($version -replace '/').zip"
  88. }
  89. cd source
  90. ## We do not build/release bcrypt for windows package
  91. Remove-Item -Recurse -Force -Path _build/default/lib/bcrypt/
  92. if (Test-Path rebar.lock) {
  93. Remove-Item -Force -Path rebar.lock
  94. }
  95. make ensure-rebar3
  96. copy rebar3 "${{ steps.install_erlang.outputs.erlpath }}\bin"
  97. ls "${{ steps.install_erlang.outputs.erlpath }}\bin"
  98. rebar3 --help
  99. make ${{ matrix.profile }}
  100. mkdir -p _packages/${{ matrix.profile }}
  101. Compress-Archive -Path _build/${{ matrix.profile }}/rel/emqx -DestinationPath _build/${{ matrix.profile }}/rel/$pkg_name
  102. mv _build/${{ matrix.profile }}/rel/$pkg_name _packages/${{ matrix.profile }}
  103. Get-FileHash -Path "_packages/${{ matrix.profile }}/$pkg_name" | Format-List | grep 'Hash' | awk '{print $3}' > _packages/${{ matrix.profile }}/$pkg_name.sha256
  104. - name: run emqx
  105. timeout-minutes: 1
  106. run: |
  107. cd source
  108. ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start
  109. Start-Sleep -s 5
  110. ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop
  111. ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install
  112. ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
  113. - uses: actions/upload-artifact@v1
  114. if: startsWith(github.ref, 'refs/tags/')
  115. with:
  116. name: ${{ matrix.profile }}
  117. path: source/_packages/${{ matrix.profile }}/.
  118. mac:
  119. needs: prepare
  120. strategy:
  121. matrix:
  122. profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
  123. erl_otp:
  124. - 23.2.7.2-emqx-3
  125. exclude:
  126. - profile: emqx-edge
  127. macos:
  128. - macos-10.15
  129. runs-on: ${{ matrix.macos }}
  130. steps:
  131. - uses: actions/download-artifact@v2
  132. with:
  133. name: source
  134. path: .
  135. - name: unzip source code
  136. run: unzip -q source.zip
  137. - name: prepare
  138. run: |
  139. brew update
  140. brew install curl zip unzip gnu-sed kerl unixodbc freetds
  141. echo "/usr/local/bin" >> $GITHUB_PATH
  142. git config --global credential.helper store
  143. - uses: actions/cache@v2
  144. id: cache
  145. with:
  146. path: ~/.kerl/${{ matrix.erl_otp }}
  147. key: otp-install-${{ matrix.erl_otp }}-${{ matrix.macos }}
  148. - name: build erlang
  149. if: steps.cache.outputs.cache-hit != 'true'
  150. timeout-minutes: 60
  151. env:
  152. KERL_BUILD_BACKEND: git
  153. OTP_GITHUB_URL: https://github.com/emqx/otp
  154. run: |
  155. kerl update releases
  156. kerl build ${{ matrix.erl_otp }}
  157. kerl install ${{ matrix.erl_otp }} $HOME/.kerl/${{ matrix.erl_otp }}
  158. - name: build
  159. run: |
  160. . $HOME/.kerl/${{ matrix.erl_otp }}/activate
  161. cd source
  162. make ensure-rebar3
  163. sudo cp rebar3 /usr/local/bin/rebar3
  164. rm -rf _build/${{ matrix.profile }}/lib
  165. make ${{ matrix.profile }}-zip
  166. - name: test
  167. run: |
  168. cd source
  169. pkg_name=$(basename _packages/${{ matrix.profile }}/${{ matrix.profile }}-*.zip)
  170. unzip -q _packages/${{ matrix.profile }}/$pkg_name
  171. gsed -i '/emqx_telemetry/d' ./emqx/data/loaded_plugins
  172. ./emqx/bin/emqx start || cat emqx/log/erlang.log.1
  173. ready='no'
  174. for i in {1..10}; do
  175. if curl -fs 127.0.0.1:18083 > /dev/null; then
  176. ready='yes'
  177. break
  178. fi
  179. sleep 1
  180. done
  181. if [ "$ready" != "yes" ]; then
  182. echo "Timed out waiting for emqx to be ready"
  183. cat emqx/log/erlang.log.1
  184. exit 1
  185. fi
  186. ./emqx/bin/emqx_ctl status
  187. ./emqx/bin/emqx stop
  188. rm -rf emqx
  189. openssl dgst -sha256 ./_packages/${{ matrix.profile }}/$pkg_name | awk '{print $2}' > ./_packages/${{ matrix.profile }}/$pkg_name.sha256
  190. - uses: actions/upload-artifact@v1
  191. if: startsWith(github.ref, 'refs/tags/')
  192. with:
  193. name: ${{ matrix.profile }}
  194. path: source/_packages/${{ matrix.profile }}/.
  195. linux:
  196. runs-on: ubuntu-20.04
  197. needs: prepare
  198. strategy:
  199. matrix:
  200. profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
  201. arch:
  202. - amd64
  203. - arm64
  204. os:
  205. - ubuntu20.04
  206. - ubuntu18.04
  207. - ubuntu16.04
  208. - debian10
  209. - debian9
  210. # - opensuse
  211. - centos8
  212. - centos7
  213. - centos6
  214. - raspbian10
  215. # - raspbian9
  216. exclude:
  217. - os: centos6
  218. arch: arm64
  219. - os: raspbian9
  220. arch: amd64
  221. - os: raspbian10
  222. arch: amd64
  223. - os: raspbian9
  224. profile: emqx
  225. - os: raspbian10
  226. profile: emqx
  227. - os: raspbian9
  228. profile: emqx-ee
  229. - os: raspbian10
  230. profile: emqx-ee
  231. defaults:
  232. run:
  233. shell: bash
  234. steps:
  235. - name: prepare docker
  236. run: |
  237. mkdir -p $HOME/.docker
  238. echo '{ "experimental": "enabled" }' | tee $HOME/.docker/config.json
  239. echo '{ "experimental": true, "storage-driver": "overlay2", "max-concurrent-downloads": 50, "max-concurrent-uploads": 50}' | sudo tee /etc/docker/daemon.json
  240. sudo systemctl restart docker
  241. docker info
  242. docker buildx create --use --name mybuild
  243. docker run --rm --privileged tonistiigi/binfmt --install all
  244. - uses: actions/download-artifact@v2
  245. with:
  246. name: source
  247. path: .
  248. - name: unzip source code
  249. run: unzip -q source.zip
  250. - name: downloads old emqx zip packages
  251. env:
  252. PROFILE: ${{ matrix.profile }}
  253. ARCH: ${{ matrix.arch }}
  254. SYSTEM: ${{ matrix.os }}
  255. OLD_VSNS: ${{ needs.prepare.outputs.old_vsns }}
  256. run: |
  257. set -e -x -u
  258. broker=$PROFILE
  259. if [ $PROFILE = "emqx" ];then
  260. broker="emqx-ce"
  261. fi
  262. if [ ! -z "$(echo $SYSTEM | grep -oE 'raspbian')" ]; then
  263. export ARCH="arm"
  264. fi
  265. mkdir -p source/_upgrade_base
  266. cd source/_upgrade_base
  267. old_vsns=($(echo $OLD_VSNS | tr ' ' ' '))
  268. for tag in ${old_vsns[@]}; do
  269. if [ ! -z "$(echo $(curl -I -m 10 -o /dev/null -s -w %{http_code} https://s3-us-west-2.amazonaws.com/packages.emqx/$broker/$tag/$PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip) | grep -oE "^[23]+")" ];then
  270. wget --no-verbose https://s3-us-west-2.amazonaws.com/packages.emqx/$broker/$tag/$PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip
  271. wget --no-verbose https://s3-us-west-2.amazonaws.com/packages.emqx/$broker/$tag/$PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip.sha256
  272. echo "$(cat $PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip.sha256) $PROFILE-$SYSTEM-${tag#[e|v]}-$ARCH.zip" | sha256sum -c || exit 1
  273. fi
  274. done
  275. - name: build emqx packages
  276. env:
  277. ERL_OTP: erl23.2.7.2-emqx-3
  278. PROFILE: ${{ matrix.profile }}
  279. ARCH: ${{ matrix.arch }}
  280. SYSTEM: ${{ matrix.os }}
  281. run: |
  282. set -e -u
  283. cd source
  284. docker buildx build --no-cache \
  285. --platform=linux/$ARCH \
  286. -t cross_build_emqx_for_$SYSTEM \
  287. -f .ci/build_packages/Dockerfile \
  288. --build-arg BUILD_FROM=emqx/build-env:$ERL_OTP-$SYSTEM \
  289. --build-arg EMQX_NAME=$PROFILE \
  290. --output type=tar,dest=/tmp/cross-build-$PROFILE-for-$SYSTEM.tar .
  291. mkdir -p /tmp/packages/$PROFILE
  292. tar -xvf /tmp/cross-build-$PROFILE-for-$SYSTEM.tar --wildcards emqx/_packages/$PROFILE/*
  293. mv emqx/_packages/$PROFILE/* /tmp/packages/$PROFILE/
  294. rm -rf /tmp/cross-build-$PROFILE-for-$SYSTEM.tar
  295. docker rm -f $(docker ps -a -q)
  296. docker volume prune -f
  297. - name: create sha256
  298. env:
  299. PROFILE: ${{ matrix.profile}}
  300. run: |
  301. if [ -d /tmp/packages/$PROFILE ]; then
  302. cd /tmp/packages/$PROFILE
  303. for var in $(ls emqx-* ); do
  304. bash -c "echo $(sha256sum $var | awk '{print $1}') > $var.sha256"
  305. done
  306. cd -
  307. fi
  308. - uses: actions/upload-artifact@v1
  309. if: startsWith(github.ref, 'refs/tags/')
  310. with:
  311. name: ${{ matrix.profile }}
  312. path: /tmp/packages/${{ matrix.profile }}/.
  313. docker:
  314. runs-on: ubuntu-20.04
  315. needs: prepare
  316. strategy:
  317. matrix:
  318. profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
  319. steps:
  320. - uses: actions/download-artifact@v2
  321. with:
  322. name: source
  323. path: .
  324. - name: unzip source code
  325. run: unzip -q source.zip
  326. - uses: docker/setup-buildx-action@v1
  327. - uses: docker/setup-qemu-action@v1
  328. with:
  329. image: tonistiigi/binfmt:latest
  330. platforms: all
  331. - uses: docker/metadata-action@v3
  332. id: meta
  333. with:
  334. images: ${{ github.repository_owner }}/${{ matrix.profile }}
  335. flavor: |
  336. latest=${{ !github.event.release.prerelease }}
  337. tags: |
  338. type=ref,event=branch
  339. type=ref,event=pr
  340. type=match,pattern=[v|e](.*),group=1
  341. labels:
  342. org.opencontainers.image.otp.version=${{ matrix.otp }}
  343. - uses: docker/login-action@v1
  344. if: github.event_name == 'release'
  345. with:
  346. username: ${{ secrets.DOCKER_HUB_USER }}
  347. password: ${{ secrets.DOCKER_HUB_TOKEN }}
  348. - uses: docker/build-push-action@v2
  349. if: matrix.profile != 'emqx-ee'
  350. with:
  351. push: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
  352. pull: true
  353. no-cache: true
  354. platforms: linux/amd64,linux/arm64
  355. tags: ${{ steps.meta.outputs.tags }}
  356. labels: ${{ steps.meta.outputs.labels }}
  357. build-args: |
  358. BUILD_FROM=emqx/build-env:erl23.2.7.2-emqx-3-alpine
  359. RUN_FROM=alpine:3.12
  360. EMQX_NAME=${{ matrix.profile }}
  361. file: source/deploy/docker/Dockerfile
  362. context: source
  363. - uses: docker/build-push-action@v2
  364. if: matrix.profile == 'emqx-ee'
  365. with:
  366. push: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
  367. pull: true
  368. no-cache: true
  369. platforms: linux/amd64,linux/arm64
  370. tags: ${{ steps.meta.outputs.tags }}
  371. labels: ${{ steps.meta.outputs.labels }}
  372. build-args: |
  373. BUILD_FROM=emqx/build-env:erl23.2.7.2-emqx-3-alpine
  374. RUN_FROM=alpine:3.12
  375. EMQX_NAME=${{ matrix.profile }}
  376. file: source/deploy/docker/Dockerfile.enterprise
  377. context: source
  378. - uses: aws-actions/configure-aws-credentials@v1
  379. if: github.event_name == 'release' && !github.event.release.prerelease && matrix.profile == 'emqx'
  380. with:
  381. aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
  382. aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  383. aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
  384. - name: Push image to aws ecr
  385. if: github.event_name == 'release' && !github.event.release.prerelease && matrix.profile == 'emqx'
  386. run: |
  387. version=${GITHUB_REF##*/}
  388. docker pull emqx/emqx:${version#v}
  389. docker tag emqx/emqx:${version#v} public.ecr.aws/emqx/emqx:${version#v}
  390. aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
  391. docker push public.ecr.aws/emqx/emqx:${version#v}
  392. delete-artifact:
  393. runs-on: ubuntu-20.04
  394. needs: [prepare, mac, linux, docker]
  395. steps:
  396. - uses: geekyeggo/delete-artifact@v1
  397. with:
  398. name: source
  399. upload:
  400. runs-on: ubuntu-20.04
  401. if: startsWith(github.ref, 'refs/tags/')
  402. needs: [prepare, mac, linux, docker]
  403. strategy:
  404. matrix:
  405. profile: ${{fromJSON(needs.prepare.outputs.profiles)}}
  406. steps:
  407. - uses: actions/checkout@v2
  408. - name: get_version
  409. run: |
  410. echo 'version<<EOF' >> $GITHUB_ENV
  411. echo ${{ github.ref }} | sed -r "s ^refs/heads/|^refs/tags/(.*) \1 g" >> $GITHUB_ENV
  412. echo 'EOF' >> $GITHUB_ENV
  413. - uses: actions/download-artifact@v2
  414. with:
  415. name: ${{ matrix.profile }}
  416. path: ./_packages/${{ matrix.profile }}
  417. - name: install dos2unix
  418. run: sudo apt-get update && sudo apt install -y dos2unix
  419. - name: get packages
  420. run: |
  421. set -e -u
  422. cd _packages/${{ matrix.profile }}
  423. for var in $( ls |grep emqx |grep -v sha256); do
  424. dos2unix $var.sha256
  425. echo "$(cat $var.sha256) $var" | sha256sum -c || exit 1
  426. done
  427. cd -
  428. - name: upload aws s3
  429. run: |
  430. set -e -u
  431. if [ "${{ matrix.profile }}" == "emqx" ];then
  432. broker="emqx-ce"
  433. else
  434. broker=${{ matrix.profile }}
  435. fi
  436. aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
  437. aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  438. aws configure set default.region ${{ secrets.AWS_DEFAULT_REGION }}
  439. aws s3 cp --recursive _packages/${{ matrix.profile }} s3://${{ secrets.AWS_S3_BUCKET }}/$broker/${{ env.version }}
  440. aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID }} --paths "/$broker/${{ env.version }}/*"
  441. - uses: Rory-Z/upload-release-asset@v1
  442. if: github.event_name == 'release' && matrix.profile != 'emqx-ee'
  443. with:
  444. repo: emqx
  445. path: "_packages/${{ matrix.profile }}/emqx-*"
  446. token: ${{ github.token }}
  447. - uses: Rory-Z/upload-release-asset@v1
  448. if: github.event_name == 'release' && matrix.profile == 'emqx-ee'
  449. with:
  450. repo: emqx-enterprise
  451. path: "_packages/${{ matrix.profile }}/emqx-*"
  452. token: ${{ github.token }}
  453. - name: update to emqx.io
  454. if: github.event_name == 'release'
  455. run: |
  456. set -e -x -u
  457. curl -w %{http_code} \
  458. --insecure \
  459. -H "Content-Type: application/json" \
  460. -H "token: ${{ secrets.EMQX_IO_TOKEN }}" \
  461. -X POST \
  462. -d "{\"repo\":\"emqx/emqx\", \"tag\": \"${{ env.version }}\" }" \
  463. ${{ secrets.EMQX_IO_RELEASE_API }}
  464. - name: push docker image to aws ecr
  465. if: github.event_name == 'release' && matrix.profile == 'emqx'
  466. run: |
  467. set -e -x -u
  468. aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
  469. docker tag emqx/emqx:${version#v} public.ecr.aws/emqx/emqx:${version#v}
  470. docker push public.ecr.aws/emqx/emqx:${version#v}
  471. - name: update repo.emqx.io
  472. if: github.event_name == 'release' && endsWith(github.repository, 'enterprise') && matrix.profile == 'emqx-ee'
  473. run: |
  474. curl --silent --show-error \
  475. -H "Authorization: token ${{ secrets.CI_GIT_TOKEN }}" \
  476. -H "Accept: application/vnd.github.v3+json" \
  477. -X POST \
  478. -d "{\"ref\":\"v1.0.3\",\"inputs\":{\"version\": \"${{ env.version }}\", \"emqx_ee\": \"true\"}}" \
  479. "https://api.github.com/repos/emqx/emqx-ci-helper/actions/workflows/update_emqx_repos.yaml/dispatches"
  480. - name: update repo.emqx.io
  481. if: github.event_name == 'release' && endsWith(github.repository, 'emqx') && matrix.profile == 'emqx'
  482. run: |
  483. curl --silent --show-error \
  484. -H "Authorization: token ${{ secrets.CI_GIT_TOKEN }}" \
  485. -H "Accept: application/vnd.github.v3+json" \
  486. -X POST \
  487. -d "{\"ref\":\"v1.0.3\",\"inputs\":{\"version\": \"${{ env.version }}\", \"emqx_ce\": \"true\"}}" \
  488. "https://api.github.com/repos/emqx/emqx-ci-helper/actions/workflows/update_emqx_repos.yaml/dispatches"
  489. - name: update homebrew packages
  490. if: github.event_name == 'release' && endsWith(github.repository, 'emqx') && matrix.profile == 'emqx'
  491. run: |
  492. if [ -z $(echo $version | grep -oE "(alpha|beta|rc)\.[0-9]") ]; then
  493. curl --silent --show-error \
  494. -H "Authorization: token ${{ secrets.CI_GIT_TOKEN }}" \
  495. -H "Accept: application/vnd.github.v3+json" \
  496. -X POST \
  497. -d "{\"ref\":\"v1.0.3\",\"inputs\":{\"version\": \"${{ env.version }}\"}}" \
  498. "https://api.github.com/repos/emqx/emqx-ci-helper/actions/workflows/update_emqx_homebrew.yaml/dispatches"
  499. fi
  500. - uses: geekyeggo/delete-artifact@v1
  501. with:
  502. name: ${{ matrix.profile }}