Skip to content

Commit 8fc215d

Browse files
authored
✅ Fix incorrect arch matching for Linux and Windows (#84)
1 parent 0965902 commit 8fc215d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/runnable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [macos-latest]
17+
os: [ubuntu-latest, macos-latest, windows-latest]
1818
steps:
1919
- uses: actions/checkout@v3
2020
- uses: dtolnay/rust-toolchain@stable
@@ -35,4 +35,4 @@ jobs:
3535
- run: cd packages/agent_dart_base && dart test ./test/agent_dart_base_test.dart
3636
- name: Publish dry run
3737
run: melos run publish-dry-run
38-
if: github.repository == 'AstroxNetwork/agent_dart'
38+
if: ${{ github.repository == 'AstroxNetwork/agent_dart' && matrix.os == 'ubuntu-latest' }}

packages/agent_dart_base/test/test_utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Future<void> ffiInit() {
3030
final [os, arch] = Abi.current().toString().split('_');
3131
final libName = switch ((os, arch)) {
3232
('macos', _) || ('linux', 'arm64') => 'libagent_dart.dylib',
33-
('linux', '_') => 'libagent_dart.so',
34-
('windows', '_') => 'agent_dart.dll',
33+
('linux', _) => 'libagent_dart.so',
34+
('windows', _) => 'agent_dart.dll',
3535
_ => throw UnsupportedError('$os $arch is not a supported platform.'),
3636
};
3737
return AgentDart.init(

0 commit comments

Comments
 (0)