From 940218ee5b2728cd98ffe01604ed7f6825479ff2 Mon Sep 17 00:00:00 2001 From: Vishal <64505169+vishalxl@users.noreply.github.com> Date: Wed, 28 Dec 2022 01:42:38 +0530 Subject: [PATCH] added arm64 for mac --- .github/workflows/dart.yml | 37 +++++++++++++++++++++++++++++++++++++ pubspec.yaml | 2 ++ 2 files changed, 39 insertions(+) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 9968dc5..9c56932 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -201,4 +201,41 @@ jobs: # Destination path path: ./ + build_macos: + runs-on: macos-latest.arm64 + + steps: + - uses: actions/checkout@v3 + + # Note: This workflow uses the latest stable version of the Dart SDK. + # You can specify other versions if desired, see documentation here: + # https://github.com/dart-lang/setup-dart/blob/main/README.md + # - uses: dart-lang/setup-dart@v1 + - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 + + - name: Install dependencies + run: dart pub get + + - name: compile exe + run: dart compile exe bin/nostr_console.dart --output bin/nostr_console_macOS_arm64 + + - name: change permission to make it executible + run: chmod 755 bin/nostr_console_macOS_arm64 + + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: nostr_console_macOS_arm64 + path: | + bin/nostr_console_macOS_arm64 + + - name: Download a Build Artifact + uses: actions/download-artifact@v3.0.0 + with: + # Artifact name + name: nostr_console_macOS_arm64 + # Destination path + path: ./ + + diff --git a/pubspec.yaml b/pubspec.yaml index 8f3771b..c4cb551 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,6 +3,8 @@ description: A multi-platform nostr client built for terminal/console version: 0.3.1-betaa homepage: https://github.com/vishalxl/nostr_console + +# added build for ubuntu arm 64, and mac arm 64 # 0.3.1 # added nostr.ch as another default relay to sync with anigma