Skip to content

Commit bce2256

Browse files
authored
feat!: prepare to release package:win32 v6.0.0 and package:ffi_leak_tracker v0.1.0 (#1024)
1 parent 5709d6e commit bce2256

1,280 files changed

Lines changed: 247083 additions & 327289 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,48 @@ updates:
1414
interval: "weekly"
1515

1616
# Examples
17+
- package-ecosystem: "pub"
18+
directory: "/examples/dartnote"
19+
schedule:
20+
interval: "weekly"
1721
- package-ecosystem: "pub"
1822
directory: "/examples/explorer"
1923
schedule:
2024
interval: "weekly"
25+
- package-ecosystem: "pub"
26+
directory: "/examples/manifest"
27+
schedule:
28+
interval: "weekly"
2129
- package-ecosystem: "pub"
2230
directory: "/examples/service_manager_cli"
2331
schedule:
2432
interval: "weekly"
33+
- package-ecosystem: "pub"
34+
directory: "/examples/snake"
35+
schedule:
36+
interval: "weekly"
37+
- package-ecosystem: "pub"
38+
directory: "/examples/task_dialog"
39+
schedule:
40+
interval: "weekly"
2541
- package-ecosystem: "pub"
2642
directory: "/examples/task_manager"
2743
schedule:
2844
interval: "weekly"
45+
- package-ecosystem: "pub"
46+
directory: "/examples/tetris"
47+
schedule:
48+
interval: "weekly"
49+
- package-ecosystem: "pub"
50+
directory: "/examples/usb_drive_monitor"
51+
schedule:
52+
interval: "weekly"
2953

3054
# Packages
55+
- package-ecosystem: "pub"
56+
directory: "/packages/ffi_leak_tracker"
57+
schedule:
58+
interval: "weekly"
3159
- package-ecosystem: "pub"
3260
directory: "/packages/generator"
3361
schedule:

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ example:
2222
'external dependency':
2323
- head-branch: [^dependabot]
2424

25+
'package: ffi_leak_tracker':
26+
- changed-files:
27+
- any-glob-to-any-file: packages/ffi_leak_tracker/**
28+
2529
'package: generator':
2630
- changed-files:
2731
- any-glob-to-any-file: packages/generator/**

.github/labels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
color: '8C9FDB'
33
description: Issue with COM support
44

5+
- name: 'package: ffi_leak_tracker'
6+
color: '2FE436'
7+
description: Issue with package:ffi_leak_tracker
8+
59
- name: 'package: generator'
610
color: '2FE436'
711
description: Issue with package:generator

.github/workflows/code_generation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
working-directory: packages/generator
4141

4242
- name: 🚀 Run Code Generation
43-
run: dart tools\generate.dart
43+
run: dart run tools\generate.dart
4444

4545
- name: 🔍 Verify Code Generation
4646
run: git diff --exit-code

.github/workflows/dart_examples.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ on:
77
- analysis_options.yaml
88
- pubspec.yaml
99
- examples/com_interop/*
10-
- examples/manifest/**
11-
- examples/notepad/**
12-
- examples/shell_notify_icon/**
13-
- examples/tetris/**
1410
- examples/*.dart
11+
- packages/win32/hook/**
1512
- packages/win32/lib/**
13+
- packages/win32/src/**
1614
- packages/win32/analysis_options.yaml
1715
- packages/win32/pubspec.yaml
1816
push:
@@ -22,23 +20,20 @@ on:
2220
- analysis_options.yaml
2321
- pubspec.yaml
2422
- examples/com_interop/*
25-
- examples/manifest/**
26-
- examples/notepad/**
27-
- examples/shell_notify_icon/**
28-
- examples/tetris/**
2923
- examples/*.dart
24+
- packages/win32/hook/**
3025
- packages/win32/lib/**
26+
- packages/win32/src/**
3127
- packages/win32/analysis_options.yaml
3228
- packages/win32/pubspec.yaml
3329

3430
jobs:
3531
build:
3632
uses: halildurmus/workflows/.github/workflows/dart.yml@main
3733
with:
38-
# Exclude the 'explorer', 'service_manager_cli', and 'task_manager'
39-
# directories when analyzing and formatting the Dart files. They are
40-
# analyzed and formatted in their own workflows.
41-
analyze_directories: $(find . -type f -not \( -path .*explorer/* -prune \) -not \( -path .*service_manager_cli/* -prune \) -not \( -path .*task_manager/* -prune \) -name '*.dart' -print)
42-
format_directories: $(find . -type f -not \( -path .*explorer/* -prune \) -not \( -path .*service_manager_cli/* -prune \) -not \( -path .*task_manager/* -prune \) -name '*.dart' -print)
34+
# Exclude package examples like 'explorer' when analyzing and formatting
35+
# the Dart files. They are analyzed and formatted in another workflow.
36+
analyze_directories: $(find . -type f -not \( -path .*explorer/* -prune \) -not \( -path .*dartnote/* -prune \) -not \( -path .*manifest/* -prune \) -not \( -path .*service_manager_cli/* -prune \) -not \( -path .*snake/* -prune \) -not \( -path .*system_tray_icon/* -prune \) -not \( -path .*task_dialog/* -prune \) -not \( -path .*task_manager/* -prune \) -not \( -path .*tetris/* -prune \) -not \( -path .*usb_drive_monitor/* -prune \) -name '*.dart' -print)
37+
format_directories: $(find . -type f -not \( -path .*explorer/* -prune \) -not \( -path .*dartnote/* -prune \) -not \( -path .*manifest/* -prune \) -not \( -path .*service_manager_cli/* -prune \) -not \( -path .*snake/* -prune \) -not \( -path .*system_tray_icon/* -prune \) -not \( -path .*task_dialog/* -prune \) -not \( -path .*task_manager/* -prune \) -not \( -path .*tetris/* -prune \) -not \( -path .*usb_drive_monitor/* -prune \) -name '*.dart' -print)
4338
run_tests: false
4439
working_directory: examples

.github/workflows/dart_package_examples.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,41 @@ on:
66
- .github/workflows/dart_package_examples.yml
77
- analysis_options.yaml
88
- pubspec.yaml
9+
- examples/dartnote/bin/**
10+
- examples/dartnote/lib/**
11+
- examples/dartnote/analysis_options.yaml
12+
- examples/dartnote/pubspec.yaml
13+
- examples/manifest/bin/**
14+
- examples/manifest/lib/**
15+
- examples/manifest/analysis_options.yaml
16+
- examples/manifest/pubspec.yaml
917
- examples/service_manager_cli/bin/**
1018
- examples/service_manager_cli/lib/**
1119
- examples/service_manager_cli/analysis_options.yaml
1220
- examples/service_manager_cli/pubspec.yaml
21+
- examples/snake/bin/**
22+
- examples/snake/lib/**
23+
- examples/snake/analysis_options.yaml
24+
- examples/snake/pubspec.yaml
25+
- examples/system_tray_icon/bin/**
26+
- examples/system_tray_icon/lib/**
27+
- examples/system_tray_icon/analysis_options.yaml
28+
- examples/system_tray_icon/pubspec.yaml
29+
- examples/task_dialog/bin/**
30+
- examples/task_dialog/lib/**
31+
- examples/task_dialog/analysis_options.yaml
32+
- examples/task_dialog/pubspec.yaml
33+
- examples/tetris/bin/**
34+
- examples/tetris/lib/**
35+
- examples/tetris/analysis_options.yaml
36+
- examples/tetris/pubspec.yaml
37+
- examples/usb_drive_monitor/bin/**
38+
- examples/usb_drive_monitor/lib/**
39+
- examples/usb_drive_monitor/analysis_options.yaml
40+
- examples/usb_drive_monitor/pubspec.yaml
41+
- packages/win32/hook/**
1342
- packages/win32/lib/**
43+
- packages/win32/src/**
1444
- packages/win32/analysis_options.yaml
1545
- packages/win32/pubspec.yaml
1646
push:
@@ -19,11 +49,41 @@ on:
1949
- .github/workflows/dart_package_examples.yml
2050
- analysis_options.yaml
2151
- pubspec.yaml
52+
- examples/dartnote/bin/**
53+
- examples/dartnote/lib/**
54+
- examples/dartnote/analysis_options.yaml
55+
- examples/dartnote/pubspec.yaml
56+
- examples/manifest/bin/**
57+
- examples/manifest/lib/**
58+
- examples/manifest/analysis_options.yaml
59+
- examples/manifest/pubspec.yaml
2260
- examples/service_manager_cli/bin/**
2361
- examples/service_manager_cli/lib/**
2462
- examples/service_manager_cli/analysis_options.yaml
2563
- examples/service_manager_cli/pubspec.yaml
64+
- examples/snake/bin/**
65+
- examples/snake/lib/**
66+
- examples/snake/analysis_options.yaml
67+
- examples/snake/pubspec.yaml
68+
- examples/system_tray_icon/bin/**
69+
- examples/system_tray_icon/lib/**
70+
- examples/system_tray_icon/analysis_options.yaml
71+
- examples/system_tray_icon/pubspec.yaml
72+
- examples/task_dialog/bin/**
73+
- examples/task_dialog/lib/**
74+
- examples/task_dialog/analysis_options.yaml
75+
- examples/task_dialog/pubspec.yaml
76+
- examples/tetris/bin/**
77+
- examples/tetris/lib/**
78+
- examples/tetris/analysis_options.yaml
79+
- examples/tetris/pubspec.yaml
80+
- examples/usb_drive_monitor/bin/**
81+
- examples/usb_drive_monitor/lib/**
82+
- examples/usb_drive_monitor/analysis_options.yaml
83+
- examples/usb_drive_monitor/pubspec.yaml
84+
- packages/win32/hook/**
2685
- packages/win32/lib/**
86+
- packages/win32/src/**
2787
- packages/win32/analysis_options.yaml
2888
- packages/win32/pubspec.yaml
2989

@@ -32,7 +92,14 @@ jobs:
3292
strategy:
3393
matrix:
3494
example:
95+
- dartnote
96+
- manifest
3597
- service_manager_cli
98+
- snake
99+
- system_tray_icon
100+
- task_dialog
101+
- tetris
102+
- usb_drive_monitor
36103

37104
uses: halildurmus/workflows/.github/workflows/dart.yml@main
38105
with:
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: ffi_leak_tracker
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/ffi_leak_tracker.yml
7+
- analysis_options.yaml
8+
- codecov.yml
9+
- pubspec.yaml
10+
- packages/ffi_leak_tracker/example/**
11+
- packages/ffi_leak_tracker/lib/**
12+
- packages/ffi_leak_tracker/src/**
13+
- packages/ffi_leak_tracker/test/**
14+
- packages/ffi_leak_tracker/analysis_options.yaml
15+
- packages/ffi_leak_tracker/CHANGELOG.md
16+
- packages/ffi_leak_tracker/pubspec.yaml
17+
push:
18+
branches: [main]
19+
paths:
20+
- .github/workflows/ffi_leak_tracker.yml
21+
- analysis_options.yaml
22+
- codecov.yml
23+
- pubspec.yaml
24+
- packages/ffi_leak_tracker/example/**
25+
- packages/ffi_leak_tracker/lib/**
26+
- packages/ffi_leak_tracker/src/**
27+
- packages/ffi_leak_tracker/test/**
28+
- packages/ffi_leak_tracker/analysis_options.yaml
29+
- packages/ffi_leak_tracker/CHANGELOG.md
30+
- packages/ffi_leak_tracker/pubspec.yaml
31+
32+
jobs:
33+
build:
34+
strategy:
35+
matrix:
36+
os: [macos, ubuntu, windows]
37+
sdk: [dev, stable]
38+
39+
uses: halildurmus/workflows/.github/workflows/dart.yml@main
40+
with:
41+
analyze_directories: example lib test
42+
check_coverage: ${{ matrix.sdk == 'dev' }}
43+
codecov_flags: ffi_leak_tracker
44+
dart_sdk: ${{ matrix.sdk }}
45+
format_directories: example lib test
46+
randomize_execution_order_of_tests: true
47+
runs_on: ${{ matrix.os }}-latest
48+
working_directory: packages/ffi_leak_tracker
49+
secrets:
50+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
51+
52+
dartdoc:
53+
uses: halildurmus/workflows/.github/workflows/dartdoc.yml@main
54+
with:
55+
working_directory: packages/ffi_leak_tracker
56+
57+
pana:
58+
uses: halildurmus/workflows/.github/workflows/pana.yml@main
59+
with:
60+
working_directory: packages/ffi_leak_tracker

.github/workflows/flutter_examples.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ on:
1212
- examples/task_manager/lib/**
1313
- examples/task_manager/analysis_options.yaml
1414
- examples/task_manager/pubspec.yaml
15+
- packages/win32/hook/**
1516
- packages/win32/lib/**
17+
- packages/win32/src/**
1618
- packages/win32/analysis_options.yaml
1719
- packages/win32/pubspec.yaml
1820
push:
@@ -27,7 +29,9 @@ on:
2729
- examples/task_manager/lib/**
2830
- examples/task_manager/analysis_options.yaml
2931
- examples/task_manager/pubspec.yaml
32+
- packages/win32/hook/**
3033
- packages/win32/lib/**
34+
- packages/win32/src/**
3135
- packages/win32/analysis_options.yaml
3236
- packages/win32/pubspec.yaml
3337

.github/workflows/generator.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,19 @@ on:
3030
jobs:
3131
build:
3232
strategy:
33-
# We want to see the results on stable even if main fails (and vice
34-
# versa). This prevents one failure from stopping the entire run.
35-
fail-fast: false
36-
37-
# Free config supports up to 20 concurrent jobs, so pick a sparse matrix
38-
# that tiles the space well.
3933
matrix:
40-
include:
41-
- os: windows-latest
42-
sdk: main
43-
- os: windows-2022
44-
sdk: stable
34+
os: [windows]
35+
sdk: [dev, stable]
4536

4637
uses: halildurmus/workflows/.github/workflows/dart.yml@main
4738
with:
4839
analyze_directories: bin example lib test
49-
check_coverage: ${{ matrix.sdk == 'main' }}
40+
check_coverage: ${{ matrix.sdk == 'dev' }}
5041
codecov_flags: generator
5142
concurrency: '1'
5243
dart_sdk: ${{ matrix.sdk }}
5344
format_directories: bin example lib test
54-
runs_on: ${{ matrix.os }}
45+
runs_on: ${{ matrix.os }}-latest
5546
working_directory: packages/generator
5647
secrets:
5748
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/prepare_release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ name: Prepare Release
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
package:
7+
required: true
8+
description: Package to release
9+
type: choice
10+
options:
11+
- ffi_leak_tracker
12+
- win32
513

614
jobs:
715
prepare-release:
816
uses: halildurmus/workflows/.github/workflows/prepare_release.yml@main
917
with:
10-
update_changelog_args: '--include-path "packages/win32/**/*" --include-path "website/docs/**/*" --repository "../../"'
11-
working_directory: packages/win32
18+
working_directory: packages/${{ inputs.package }}
1219
secrets:
1320
token: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)