build_slim_packages.yaml 978 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Build slim packages
  2. on:
  3. - pull_request
  4. - workflow_dispatch
  5. jobs:
  6. build:
  7. runs-on: ubuntu-20.04
  8. strategy:
  9. matrix:
  10. erl_otp:
  11. - erl23.2.7
  12. os:
  13. - ubuntu20.04
  14. - centos7
  15. container: emqx/build-env:${{ matrix.erl_otp }}-${{ matrix.os }}
  16. steps:
  17. - uses: actions/checkout@v1
  18. - name: build packages
  19. run: |
  20. if make emqx-ee --dry-run > /dev/null 2>&1; then
  21. echo "https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com" > $HOME/.git-credentials
  22. git config --global credential.helper store
  23. echo "${{ secrets.CI_GIT_TOKEN }}" >> source/scripts/git-token
  24. make emqx-ee-pkg
  25. else
  26. make emqx-pkg
  27. fi
  28. - name: pakcages test
  29. run: |
  30. export CODE_PATH=$GITHUB_WORKSPACE
  31. .ci/build_packages/tests.sh
  32. - uses: actions/upload-artifact@v2
  33. with:
  34. name: ${{ matrix.os }}
  35. path: _packages/**/*.zip