Skip to content

Commit

Permalink
TO-DROP: verify that the pacman work-around works
Browse files Browse the repository at this point in the history
This downloads the PR build artifact from
msys2/MSYS2-packages#4583 and replaces the
`pacman.exe` in `git-sdk-arm64`'s `sync` job, to verify that this
actually prevents those pesky, pesky hangs.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed May 4, 2024
1 parent db99e5e commit 166e6d0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,27 @@ jobs:
with:
persist-credentials: true
token: ${{ secrets.PUSH_TOKEN }}
- name: Use `pacman.exe` from https://github.com/msys2/MSYS2-packages/pull/4583
shell: bash
run: |
repository=msys2/MSYS2-packages &&
run_id=8953014074 &&
name=MSYS-packages &&
curl -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
-L https://api.github.com/repos/$repository/actions/runs/$run_id/artifacts |
jq -r '.artifacts[] | select(.name | test("'$name'")) | [.name, .archive_download_url] | @tsv' |
tr -d '\r' |
while read name url
do
echo "$name"
curl -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
-#sLo /tmp/"$name".zip "$url" &&
mkdir "$name" &&
unzip -q -d "$name" /tmp/"$name".zip ||
return 1
done &&
tar -C / -xvf "$PWD"/MSYS-packages/pacman-*.pkg.tar* usr/bin/pacman.exe
- name: Update all Pacman packages
shell: pwsh
run: |
Expand Down

0 comments on commit 166e6d0

Please sign in to comment.