Skip to content

Commit 1091a7c

Browse files
committed
Dart tests on Windows arm
1 parent ea2a565 commit 1091a7c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
strategy:
131131
fail-fast: false
132132
matrix:
133-
os: [ubuntu-24.04, ubuntu-arm64, macos-latest, windows-latest]
133+
os: [ubuntu-24.04, ubuntu-arm64, macos-latest, windows-latest, windows-11-arm]
134134

135135
steps:
136136
- uses: actions/checkout@v4

dart/tool/download_sqlite3.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'dart:ffi';
12
import 'dart:io';
23

34
import 'package:archive/archive_io.dart';
@@ -24,7 +25,10 @@ extension on SqliteVersion {
2425
String get autoconfUrl =>
2526
'https://sqlite.org/$year/sqlite-autoconf-$version.tar.gz';
2627

27-
String get windowsUrl =>
28+
String get windowsArm64Url =>
29+
'https://sqlite.org/$year/sqlite-dll-win-arm64-$version.zip';
30+
31+
String get windowsX64Url =>
2832
'https://sqlite.org/$year/sqlite-dll-win-x64-$version.zip';
2933
}
3034

@@ -61,7 +65,9 @@ Future<void> _downloadAndCompile(String name, SqliteVersion version,
6165
// installed and all those tools activated in the current shell.
6266
// Much easier to just download precompiled builds.
6367
if (Platform.isWindows) {
64-
final windowsUri = version.windowsUrl;
68+
final windowsUri = Abi.current() == Abi.windowsX64
69+
? version.windowsX64Url
70+
: version.windowsArm64Url;
6571
final sqlite3Zip = p.join(temporaryDirPath, 'sqlite3.zip');
6672
final client = Client();
6773
final response = await client

0 commit comments

Comments
 (0)