Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[infra] Fix CI #1114

Merged
merged 3 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- uses: nttld/setup-ndk@6a7e9c5494a25c4842ca1011f710300132eacd94
with:
ndk-version: r26b
if: ${{ matrix.sdk == 'stable' }}
if: ${{ matrix.sdk == 'stable' && matrix.os != 'macos' }}

- run: dart pub get

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ void main() {
void testNativeAdd() {
final answer = add(5, 6);
if (answer != 5 + 6) {
throw 'Wrong answer';
throw Exception('Wrong answer');
}
print('add(5, 6) = $answer');
}

void testNativeSubtract() {
final answer = subtract(5, 6);
if (answer != 5 - 6) {
throw 'Wrong answer';
throw Exception('Wrong answer');
}
print('subtract(5, 6) = $answer');
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

import 'dart:ffi';

import 'package:use_dart_api/use_dart_api.dart';
import 'package:test/test.dart';
import 'package:use_dart_api/use_dart_api.dart';

void main() {
InitDartApiDL(NativeApi.initializeApiDLData);

test('use dart_api_dl.h', () {
const int x = 42;
const x = 42;
final persistentHandle = NewPersistentHandle(x);
HandleFromPersistent(persistentHandle);
});
Expand Down