Skip to content

Commit

Permalink
ci: build for arm macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jjanku committed Mar 22, 2024
1 parent d17b311 commit 4750b0a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}

Expand Down

0 comments on commit 4750b0a

Please sign in to comment.