Skip to content

Commit

Permalink
✅ Fix incorrect arch matching for Linux and Windows (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Oct 11, 2024
1 parent 0965902 commit 8fc215d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/runnable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -35,4 +35,4 @@ jobs:
- 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'
if: ${{ github.repository == 'AstroxNetwork/agent_dart' && matrix.os == 'ubuntu-latest' }}
4 changes: 2 additions & 2 deletions packages/agent_dart_base/test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Future<void> ffiInit() {
final [os, arch] = Abi.current().toString().split('_');
final libName = switch ((os, arch)) {
('macos', _) || ('linux', 'arm64') => 'libagent_dart.dylib',
('linux', '_') => 'libagent_dart.so',
('windows', '_') => 'agent_dart.dll',
('linux', _) => 'libagent_dart.so',
('windows', _) => 'agent_dart.dll',
_ => throw UnsupportedError('$os $arch is not a supported platform.'),
};
return AgentDart.init(
Expand Down

0 comments on commit 8fc215d

Please sign in to comment.