From 6dffa815cc7614381da2857f0afabfe62cb06066 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 1 Dec 2023 22:49:32 +0100 Subject: [PATCH] TO-DROP: try overwriting the MSYS2 runtime already when building This is mainly for testing the PowerShell snippet Signed-off-by: Johannes Schindelin --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab65c3011a0079..6bd8349dbb0300 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,12 +27,18 @@ jobs: steps: - uses: actions/checkout@v3 - uses: git-for-windows/setup-git-for-windows-sdk@v1 + - name: replace the MSYS2 runtime + shell: powershell + run: | + Invoke-WebRequest -Headers @{ Authorization = "token ${{ secrets.GITHUB_TOKEN }}" } "https://api.github.com/repos/msys2/msys2-runtime/actions/artifacts/1215171508/zip" -outfile "a1.zip" + Expand-Archive -Force -DestinationPath D:/git-sdk-64-minimal a1.zip + Remove-Item a1.zip - name: build shell: bash env: HOME: ${{runner.workspace}} NO_PERL: 1 - run: . /etc/profile && ci/make-test-artifacts.sh artifacts + run: uname -a && . /etc/profile && ci/make-test-artifacts.sh artifacts - name: zip up tracked files run: git archive -o artifacts/tracked.tar.gz HEAD - name: upload tracked files and build artifacts