-
Notifications
You must be signed in to change notification settings - Fork 50
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
package:objective_c #1061
package:objective_c #1061
Changes from all commits
d0df41c
c2036a1
3557789
9ea9ddb
50a2ac5
1e8d650
7c47494
5249b79
8d69c7f
62d5340
e48d38b
09a4734
c34d5f8
4dcd715
0396b3c
91aa71c
a5d0d99
6413bab
466166e
85473c7
2b67592
03a7693
0b004e6
ff7c4b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
name: "package:objective_c" | ||
about: "Create a bug or file a feature request against package:objective_c." | ||
labels: "package:objective_c" | ||
--- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: objective_c | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it is better to fold this into
Either we should figure out how to do coverage from the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JNI has more classes (like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll be adding classes like The coverage issue should be pretty easy to fix. The coverage tool explicitly filters out coverage info from all packages other than the one directly being tested. All we have to do is change the flags to make sure all the packages in this repo are allowed through that filter. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, that worked. I'm gathering package:objective_c coverage during package:ffigen's tests. You can see that the pkgs/objective_c directory is present in the coverage data, where it was missing from earlier runs: https://coveralls.io/builds/66793256 |
||
|
||
on: | ||
# Run on PRs and pushes to the default branch. | ||
push: | ||
branches: [main, stable] | ||
paths: | ||
- '.github/workflows/objective_c.yml' | ||
- 'pkgs/objective_c/**' | ||
pull_request: | ||
branches: [main, stable] | ||
paths: | ||
- '.github/workflows/objective_c.yml' | ||
- 'pkgs/objective_c/**' | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
env: | ||
PUB_ENVIRONMENT: bot.github | ||
|
||
jobs: | ||
# Check code formatting and static analysis. | ||
analyze: | ||
runs-on: macos-latest | ||
defaults: | ||
run: | ||
working-directory: pkgs/objective_c/ | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | ||
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | ||
with: | ||
flutter-version: 3.19.0 | ||
channel: 'stable' | ||
- id: install | ||
name: Install dependencies | ||
run: flutter pub get | ||
- name: Check formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
if: always() && steps.install.outcome == 'success' | ||
- name: Analyze code | ||
run: flutter analyze --fatal-infos | ||
if: always() && steps.install.outcome == 'success' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the majority of steps not be able to run in Dart standalone?
In other words, developers working on FFIgen on Linux/Windows should be able to run things on Dart standalone right? Only the ObjectiveC tests, which only run on MacOS, require Flutter?
Can we keep the Windows and Linux configs on Dart standalone?
(The JNIgen yaml file only has pub for the examples, not for analyzing package:jnigen, etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Linux/Windows tests can run without flutter, but pub get fails because of the package:objective_c dev dependency. I don't know of a way of declaring that dependency only for mac/ios.
https://github.com/dart-lang/native/actions/runs/8593210918/job/23544623224