Skip to content

Commit c99f8a8

Browse files
No need for hashing pixi.lock
1 parent 730fd43 commit c99f8a8

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/reusable-ros-tooling-win-build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,12 @@ jobs:
6666
ref: ${{ inputs.ref_for_scheduled_build }}
6767
path: ${{ env.repo_path }}
6868

69-
- name: Hash pixi dependencies
70-
id: hash
71-
shell: pwsh
72-
run: |
73-
$input = "${{ inputs.pixi_dependencies }}"
74-
$bytes = [System.Text.Encoding]::UTF8.GetBytes($input)
75-
$hash = [System.BitConverter]::ToString([System.Security.Cryptography.SHA256]::Create().ComputeHash($bytes)) -replace "-", ""
76-
echo "hash=$hash" >> $env:GITHUB_OUTPUT
77-
7869
- name: Restore pixi.lock
7970
uses: actions/cache/restore@v4
8071
id: cache
8172
with:
8273
path: pixi.lock
83-
key: pixi|${{ inputs.ros_distro }}|${{ steps.hash.outputs.hash }}
74+
key: pixi|${{ inputs.ros_distro }}
8475

8576
- name: Bootstrap pixi and patch manifest file
8677
# https://docs.ros.org/en/rolling/Installation/Windows-Install-Binary.html
@@ -142,7 +133,7 @@ jobs:
142133
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
143134
with:
144135
path: pixi.lock
145-
key: pixi|${{ inputs.ros_distro }}|${{ steps.hash.outputs.hash }}
136+
key: pixi|${{ inputs.ros_distro }}
146137

147138
- name: Upload pixi lock file
148139
uses: actions/[email protected]

0 commit comments

Comments
 (0)