Commit a76da93
committed
refactor(ci): consolidate and optimize native build workflows
Merged duplicate workflows and significantly improved the native build pipeline:
Consolidation & DRY:
- Merged build-native.yml and build-native-scanner.yml into single workflow
- Removed unused scripts: bin/build-native, bin/hash, bin/hash.js
Release Management:
- Centralized all release uploads in finalize-release job
- Replaced svenstaro/upload-release-action with native gh CLI
- Removed manual checksum generation (GitHub provides manifests)
Security & Best Practices:
- Added explicit least-privilege permissions (contents: read by default)
- Only finalize-release has contents: write permission
- Replaced custom PAT with built-in GITHUB_TOKEN
- Added concurrency control to cancel outdated PR builds
- Added timeouts to all jobs (5-60 min based on complexity)
- Use ubuntu-slim for bookkeeping jobs
Dependencies & Fixes:
- Updated all GitHub Actions to latest versions:
• checkout: v3 → v6
• cache: v3 → v5
• setup-node: v4 → v6
• upload-artifact: v4 → v6
• download-artifact: v4 → v7
- Fixed deprecated set-output command in setup-node action
- Fixed missing Node.js setup in finalize-release job
- Actually use x64 macos runner to build for x64
- Made code signing optional for non-tag builds1 parent ed8c7e7 commit a76da93
6 files changed
Lines changed: 135 additions & 551 deletions
File tree
- .github
- actions/setup-node
- workflows
- bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
This file was deleted.
0 commit comments