Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update circle ci for mac os arm64 #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ commands:
command: |-
cd ~/
if [[ $OSTYPE == 'darwin'* ]]; then
curl https://storage.googleapis.com/dart-archive/channels/$DART_RELEASE/release/$DART_VERSION/sdk/dartsdk-macos-x64-release.zip -o dart-sdk.zip
unzip dart-sdk.zip
sudo ln -s `pwd`/dart-sdk/bin/dart /usr/local/bin/dart
if [[ $(uname -m) == 'arm64' ]]; then
echo "Running on ARM64 (Apple Silicon)"
curl https://storage.googleapis.com/dart-archive/channels/$DART_RELEASE/release/$DART_VERSION/sdk/dartsdk-macos-arm64-release.zip -o dart-sdk.zip
else
echo "Running on Intel x64"
curl https://storage.googleapis.com/dart-archive/channels/$DART_RELEASE/release/$DART_VERSION/sdk/dartsdk-macos-x64-release.zip -o dart-sdk.zip
fi
unzip dart-sdk.zip
sudo ln -s `pwd`/dart-sdk/bin/dart /usr/local/bin/dart
else
wget https://storage.googleapis.com/dart-archive/channels/$DART_RELEASE/release/$DART_VERSION/linux_packages/dart_${DART_VERSION}-1_amd64.deb
sudo dpkg -i dart_${DART_VERSION}-1_amd64.deb
wget https://storage.googleapis.com/dart-archive/channels/$DART_RELEASE/release/$DART_VERSION/linux_packages/dart_${DART_VERSION}-1_amd64.deb
sudo dpkg -i dart_${DART_VERSION}-1_amd64.deb
fi
dart --version

Expand Down Expand Up @@ -157,7 +163,7 @@ jobs:
- install_dart
- test_all
- build_puro:
os_name: darwin-x64
os_name: darwin
build_args: << parameters.build_args >>

windows_build:
Expand Down