From 6707a337c83c1703fe9c3838116b3a601b4574cb Mon Sep 17 00:00:00 2001 From: Reshetnikov_AS Date: Sat, 2 Mar 2024 02:09:03 +0400 Subject: [PATCH] ci-init.bat --- .github/workflows/ci-test-run.yml | 17 +++++++++++++---- .tests/ci-test-run.bat | 3 +++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-test-run.yml b/.github/workflows/ci-test-run.yml index 64c207f2..152e25cc 100644 --- a/.github/workflows/ci-test-run.yml +++ b/.github/workflows/ci-test-run.yml @@ -64,10 +64,19 @@ jobs: - name: ci test-run (nanoserver) if: matrix.artifact == 'nanoserver' run: | - cd "${{ github.workspace }}\_AutoinstallCreator" - curl --location "https://github.com/hemnstill/StandaloneTools/releases/download/python-3.12.1/build-msvc.tar.gz" --output "python.tar.gz" - tar -xf "python.tar.gz" --strip-components 2 - echo f | xcopy /Y /Q /R "python.exe" "python3.exe" + ( + echo mkdir -p C:\Python && cd C:\Python + echo curl --location "https://github.com/hemnstill/StandaloneTools/releases/download/python-3.12.1/build-msvc.tar.gz" --output "python.tar.gz" + echo tar -xf "python.tar.gz" --strip-components 2 + echo echo f | xcopy /Y /Q /R "python.exe" "python3.exe" + + echo mkdir -p C:\git && cd C:\git + echo curl --location https://github.com/git-for-windows/git/releases/download/v2.44.0.windows.1/MinGit-2.44.0-busybox-64-bit.zip --output "git.zip" + echo tar -xf "git.zip" + + echo setx /M Path "C:\Python;C:\git\bin;C:\git\usr\bin;C:\git\mingw64\bin;%PATH%" + )>"${{ github.workspace }}\.tests\ci-init.bat" + docker container run --rm -v ${{ github.workspace }}:C:\app -w C:\app ${{ env.IMAGE_NAME }} C:\app\.tests\ci-test-run.bat test-create: diff --git a/.tests/ci-test-run.bat b/.tests/ci-test-run.bat index 5bd876e1..a2ba20f6 100644 --- a/.tests/ci-test-run.bat +++ b/.tests/ci-test-run.bat @@ -1,4 +1,7 @@ @echo off + +if exist "%~dp0\ci-init.bat" call "%~dp0\ci-init.bat" + "%~dp0..\.tools\busybox.exe" bash "%~dp0ci-test-run.sh" %* exit /b %errorlevel%