Skip to content

Commit

Permalink
[infra] Fix CI (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes authored May 2, 2024
1 parent 2eef97f commit bf9dce2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit bf9dce2

Please sign in to comment.