Files
oh-my-pi/.github/actions/native-source-hash/action.yml
T
can1357 5f988a8270 ci: configured native artifact caching and parallel execution in ci workflows
- Enhanced CI workflows and GitHub actions to support native artifact caching and parallel builds.
- Added composite actions and scripts for computing sources, finding artifacts, and managing caches.
- Updated infrastructure documentation and runner deployment scripts with revised resource limits.
2026-07-27 07:53:28 +02:00

31 lines
1.1 KiB
YAML

name: Compute native source hash
description: Hash every source, toolchain, and build-or-validation input that governs reusable native artifacts.
outputs:
source-hash:
description: Stable 16-hex native source fingerprint
value: ${{ steps.compute.outputs.source-hash }}
runs:
using: composite
steps:
- name: Compute native source hash
id: compute
shell: bash
run: |
set -euo pipefail
source_hash=$(find \
crates \
packages/natives/scripts \
Cargo.toml Cargo.lock rust-toolchain.toml rustfmt.toml \
packages/natives/package.json \
scripts/ci-build-native.ts scripts/ci-target-cache.ts scripts/host-detect.ts scripts/run-rs-task.ts \
.github/actions/build-native/action.yml .github/actions/native-source-hash/action.yml \
-type f -print0 \
| sort -z \
| xargs -0 sha256sum \
| sha256sum \
| cut -c1-16)
echo "source-hash=$source_hash" >> "$GITHUB_OUTPUT"
echo "Native source hash: $source_hash"