Skip to content

Commit

Permalink
✨ Merge new structure and dependencies (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Oct 8, 2024
2 parents 0e0cc1d + e882c80 commit 1f4e282
Show file tree
Hide file tree
Showing 480 changed files with 13,557 additions and 16,526 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dart and Flutter Package Publisher
- name: Replace symlinks before publish
run: ./scripts/replace_symlinks_before_publish.sh

- name: Publish agent_dart
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
relativePath: packages/agent_dart
skipTests: true
suppressBuildRunner: true

- name: Publish agent_dart_base
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
relativePath: packages/agent_dart_base
skipTests: true
suppressBuildRunner: true

- name: Publish agent_dart_ffi
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
relativePath: packages/agent_dart_ffi
skipTests: true
suppressBuildRunner: true
20 changes: 13 additions & 7 deletions .github/workflows/runnable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,25 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [macos-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: dart --version
- run: flutter --version
- run: flutter pub get
- run: flutter test ./test/agent_dart_test.dart # This is the only test that's runnable on actions.
- run: dart pub publish --dry-run
- uses: bluefireteam/melos-action@v3
- name: Replace symlinks
run: ./scripts/replace_symlinks_before_publish.sh
- run: cargo build --package=agent_dart
- run: cd packages/agent_dart_base && dart test ./test/agent_dart_base_test.dart
- name: Publish dry run
run: melos run publish-dry-run
if: github.repository == 'AstroxNetwork/agent_dart'
35 changes: 22 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,38 @@
.dart_tool/
.idea/
.vscode/
.iml

.packages
.pub/

build/

.env
pubspec.lock

rust/target
rust/Cargo.lock
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.atom/
.buildlog/
.history
.svn/

_main.dart
# IntelliJ related
*.ipr
*.iws

# Flutter/Dart/Pub related
pubspec_overrides.yaml
**/doc/api/
.pub-cache/
.flutter-plugins
.flutter-plugins-dependencies
**/pubspec.lock

# build files
/platform-build/
/target/
# rust/headers/
# rust/dylib/
# macos/cli/
# macos/libagent_dart.a
# ios/libagent_dart.a
# android/src/main/jniLibs/
# linux/libagent_dart.so
# windows/agent_dart.dll
/Cargo.lock
/platform-build
31 changes: 0 additions & 31 deletions .pubignore

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ that can be found in the LICENSE file. -->

# Changelog

## 1.0.0-dev.25

- Prepare for monorepo.

## 1.0.0-dev.24

- Implement subaccount as `Principal.subAccount`, which also removes the `subAccount` parameter
Expand Down
Loading

0 comments on commit 1f4e282

Please sign in to comment.