Skip to content

Commit

Permalink
fixup! ci: add a workflow to test custom MSYS2 runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Feb 12, 2024
1 parent 8b5a862 commit fee60bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-msys2-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: overwrite MSYS2 runtime with the msys2-runtime build's artifacts
shell: bash
run: |
set -x &&
case "$MSYS2_RUNTIME_ARTIFACT_URL" in
https://github.com/*/actions/runs/[0-9]*/artifacts/[0-9]*)
MSYS2_RUNTIME_ARTIFACT_URL="$(echo "$MSYS2_RUNTIME_ARTIFACT_URL" |
Expand All @@ -64,11 +65,11 @@ jobs:
esac
curl -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
-#sLo /tmp/"$name".zip "$MSYS2_RUNTIME_ARTIFACT_URL" &&
-fLo msys2-runtime.zip "$MSYS2_RUNTIME_ARTIFACT_URL" &&
mkdir minimal-sdk &&
cd minimal-sdk &&
tar xzf ../git-sdk-64-minimal.tar.gz &&
unzip -q /tmp/"$name".zip &&
unzip -qo ../msys2-runtime.zip &&
tar cvf - * .[0-9A-Za-z]* | gzip -1 >../git-sdk-64-minimal.tar.gz
- run: minimal-sdk\usr\bin\uname.exe -a
- name: upload minimal-sdk artifact
Expand Down

0 comments on commit fee60bd

Please sign in to comment.