Просмотр исходного кода

ci: build macos release packages for apple silicon (arm64)

Ivan Dyachkov 3 лет назад
Родитель
Сommit
5c40b1dffd
2 измененных файлов с 6 добавлено и 5 удалено
  1. 4 5
      .github/workflows/build_packages.yaml
  2. 2 0
      changes/v5.0.11-en.md

+ 4 - 5
.github/workflows/build_packages.yaml

@@ -74,7 +74,7 @@ jobs:
               esac
               ;;
           esac
-          echo "::set-output name=BUILD_PROFILE::$PROFILE"
+          echo "BUILD_PROFILE=$PROFILE" >> $GITHUB_OUTPUT
       - name: get_all_deps
         run: |
           make -C source deps-all
@@ -143,8 +143,10 @@ jobs:
           - 24.3.4.2-1
         os:
           - macos-11
+          - macos-12-arm64
     runs-on: ${{ matrix.os }}
     steps:
+    - uses: emqx/self-hosted-cleanup-action@v1.0.3
     - uses: actions/download-artifact@v3
       with:
         name: source
@@ -152,11 +154,8 @@ jobs:
     - name: unzip source code
       run: |
         ln -s . source
-        unzip -q source.zip
+        unzip -o -q source.zip
         rm source source.zip
-    - name: prepare
-      run: |
-        git config --global credential.helper store
     - uses: ./.github/actions/package-macos
       with:
         profile: ${{ matrix.profile }}

+ 2 - 0
changes/v5.0.11-en.md

@@ -23,6 +23,8 @@
 
 - Keep MQTT v5 User-Property pairs from bridge ingested MQTT messsages to bridge target [#9398](https://github.com/emqx/emqx/pull/9398).
 
+- Start building MacOS packages for Apple Silicon hadrdware [#9423](https://github.com/emqx/emqx/pull/9423).
+
 ## Bug fixes
 
 - Fix `ssl.existingName` option of  helm chart not working [#9307](https://github.com/emqx/emqx/issues/9307).