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

Workflow cleanups #846

Merged
merged 10 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ jobs:
ndk-version: r26b
if: ${{ matrix.sdk == 'stable' }}

- run: dart pub get -C ../../tools/
if: ${{ matrix.dependencies == 'path' }}

- run: dart ../../tools/bin/change_dependencies.dart
if: ${{ matrix.dependencies == 'path' }}
- run: dart run ../../tools/delete_pubspec_overrides.dart
if: ${{ matrix.dependencies == 'published' }}

- run: dart pub get

Expand Down
3 changes: 3 additions & 0 deletions pkgs/native_assets_builder/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
native_toolchain_c:
path: ../../../../native_toolchain_c/
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
native_toolchain_c:
path: ../../../../native_toolchain_c/
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
native_toolchain_c:
path: ../../../../native_toolchain_c/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../../../../native_assets_cli/
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependency_overrides:
native_assets_cli:
path: ../../../native_assets_cli/
native_toolchain_c:
path: ../../../native_toolchain_c/
mosuem marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions pkgs/native_toolchain_c/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
native_assets_cli:
path: ../native_assets_cli/
9 changes: 0 additions & 9 deletions tools/.gitignore

This file was deleted.

52 changes: 0 additions & 52 deletions tools/bin/change_dependencies.dart

This file was deleted.

6 changes: 6 additions & 0 deletions tools/delete_pubspec_overrides.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'dart:io';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we have 0 package dependencies in this script, so no pubspec is needed? it feels a bit weird though.

Does it mean this script always has to be the latest language version for example?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never use pubspecs on scripts :D It just means no restrictions on the SDK used, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which could mean it stops working on Dart 4.0 ?

Fine with me either way. 4.0 is far out =P


void main(List<String> arguments) => Directory.current
.list(recursive: true)
.where((f) => f.path.endsWith('pubspec_overrides.yaml'))
.forEach((f) => f.deleteSync());
14 changes: 0 additions & 14 deletions tools/pubspec.yaml

This file was deleted.