Skip to content

Commit

Permalink
ci-init.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Mar 1, 2024
1 parent 4d1f879 commit 6707a33
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci-test-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .tests/ci-test-run.bat
Original file line number Diff line number Diff line change
@@ -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%

0 comments on commit 6707a33

Please sign in to comment.