Include the hash of the cross binary in the cache key

This protects against changes to the Docker images that `cross` uses.
This commit is contained in:
Dave Rolsky
2024-12-24 11:35:28 -06:00
parent a183497a0a
commit faf2f9fd0a
4 changed files with 54 additions and 29 deletions

View File

@@ -140,7 +140,7 @@ runs:
fi
# This will get the inputs JSON from the `RUST_CACHE_PARAMETERS` env var. This avoids
# any string interpolation issues, since the inputs will contain quotes.
parse-rust-cache-parameters.py "${{ inputs.target }}" "${{ steps.set-build-command.outputs.build-command }}" "$OS_VERSION"
parse-and-set-rust-cache-parameters.py "${{ inputs.target }}" "${{ steps.set-build-command.outputs.build-command }}" "$OS_VERSION"
env:
RUST_CACHE_PARAMETERS: ${{ inputs.rust-cache-parameters }}
if: inputs.use-rust-cache == 'true'