From 4750b0a1d501e2d687ea63a7339e0b0d828f02d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jank=C5=AF?= Date: Fri, 22 Mar 2024 13:34:01 +0100 Subject: [PATCH] ci: build for arm macos --- .github/workflows/flutter-ci.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/flutter-ci.yml b/.github/workflows/flutter-ci.yml index 3bc2646..c94c1f9 100644 --- a/.github/workflows/flutter-ci.yml +++ b/.github/workflows/flutter-ci.yml @@ -71,7 +71,7 @@ jobs: strategy: matrix: # target: [Windows, Linux, macOS, Android] - target: [macOS] + target: [macOS-x86, macOS-arm] include: # - os: windows-latest # target: Windows @@ -86,8 +86,14 @@ jobs: # build_path: build/linux/x64/release/bundle # asset_extension: .tar.gz # asset_content_type: application/gzip - - os: macos-latest - target: macOS + - os: macos-12 + target: macOS-x86 + build_target: macos + build_path: build/macos/Build/Products/Release + asset_extension: .zip + asset_content_type: application/zip + - os: macos-14 + target: macOS-arm build_target: macos build_path: build/macos/Build/Products/Release asset_extension: .zip @@ -188,7 +194,7 @@ jobs: --dart-define=ALLOW_BAD_CERTS=true - name: Build native libs for macOS - if: matrix.target == 'macOS' + if: startsWith(matrix.target, 'macOS') env: OPENSSL_STATIC: 1 run: | @@ -218,7 +224,7 @@ jobs: run: compress-archive -Path * -DestinationPath ${env:GITHUB_WORKSPACE}\meesign_client_${{ matrix.target }}.zip working-directory: ${{ matrix.build_path }} - name: Compress build for macOS - if: matrix.target == 'macOS' + if: startsWith(matrix.target, 'macOS') run: ditto -c -k --sequesterRsrc --keepParent meesign_client.app $GITHUB_WORKSPACE/meesign_client_${{ matrix.target }}.zip working-directory: ${{ matrix.build_path }}