build_packages.yaml 19 KB

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