From ef5050589617ce85835ecc23b071fafe1a69c0c2 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Tue, 2 Jul 2024 23:46:13 +0200 Subject: [PATCH] Revert "Is it this easy to build an universal binary?" This reverts commit 1c5aa1a20ef442dced8a80b45e87709cbd3fd58d. --- .github/workflows/ci.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a18435d8b..56986ef7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,6 @@ jobs: echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV echo "BUILD_NAMEx64=inav-configurator_darwin_x64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV echo "BUILD_NAMEarm64=inav-configurator_darwin_arm64_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV - echo "BUILD_NAME=inav-configurator_darwin_${VERSION}_${BUILD_SUFFIX}" >> $GITHUB_ENV - uses: actions/setup-node@v4 with: node-version: 20 @@ -103,18 +102,30 @@ jobs: retry_on: error command: npm install timeout_minutes: 10 - - name: Build MacOS - run: npm run make -- --arch="universal" - - name: Upload MacOS zip + - name: Build MacOS x64 + run: npm run make -- --arch="x64" + - name: Build MacOS arm64 + run: npm run make -- --arch="arm64" + - name: Upload MacOS x64 zip uses: actions/upload-artifact@v4 with: - name: ${{env.BUILD_NAME}}_ZIP - path: ./out/make/zip/darwin/universal/*.zip - - name: Upload MacOS4 dmg + name: ${{env.BUILD_NAMEx64}}_ZIP + path: ./out/make/zip/darwin/x64/*.zip + - name: Upload MacOS x64 dmg uses: actions/upload-artifact@v4 with: - name: ${{env.BUILD_NAME}}_DMG + name: ${{env.BUILD_NAMEx64}}_DMG path: ./out/make/*x64*.dmg + - name: Upload MacOS arm64 zip + uses: actions/upload-artifact@v4 + with: + name: ${{env.BUILD_NAMEarm64}}_ZIP + path: ./out/make/zip/darwin/arm64/*.zip + - name: Upload MacOS arm64 dmg + uses: actions/upload-artifact@v4 + with: + name: ${{env.BUILD_NAMEarm64}}_DMG + path: ./out/make/*arm64*.dmg build-windows: runs-on: windows-latest steps: @@ -180,4 +191,4 @@ jobs: with: name: ${{env.BUILD_NAMEia32}}_MSI path: ./out/make/wix/ia32/*.msi - + \ No newline at end of file