Skip to content

Add artifact fetch build support#325

Draft
mosuem wants to merge 7 commits into
google:masterfrom
mosuem:add-artifact-fetch-build-support
Draft

Add artifact fetch build support#325
mosuem wants to merge 7 commits into
google:masterfrom
mosuem:add-artifact-fetch-build-support

Conversation

@mosuem

@mosuem mosuem commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Configures hooks.user_defines.webcrypto.buildMode: fetch as the default build mode in pubspec.yaml.
  • Updates hook/build.dart to support fetch (default), build (local CMake compilation), and local (custom local binary) modes.
  • Adds SHA256 integrity checks against lib/src/hook_helpers/hashes.dart.
  • Adds tool/regenerate_hashes.dart to autogenerate release hash tables.
  • Adds .github/workflows/release-artifacts.yml covering Linux, macOS (x64, arm64), Windows, Android (arm64, arm, x64), and iOS (arm64).
  • Enables manual workflow_dispatch for workflow testing without publishing releases.
  • Pins GitHub Actions to full commit SHA hashes.

After merging, we need to run the artifact generation once to get the hashes.

mosuem added 4 commits July 15, 2026 12:50
- Upgrade ffigen dependency to ^20.0.0 in pubspec.yaml
- Consolidate YAML ffigen configs into tool/ffigen.dart
- Update tool/update-bindings.sh to run dart run tool/ffigen.dart
- Re-generate native bindings
- Add hooks.user_defines.webcrypto.buildMode: fetch to pubspec.yaml
- Support fetch, build, and local build modes in hook/build.dart
- Add lib/src/hook_helpers/hashes.dart and tool/regenerate_hashes.dart for SHA256 integrity checks
- Add .github/workflows/release-artifacts.yml matrix workflow supporting Linux, macOS, Windows, Android, and iOS
- Pin workflow actions to full commit SHA hashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant