Skip to content

Commit

Permalink
.example
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Mar 1, 2024
1 parent cc57ca1 commit 6af6808
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/ci-test-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,7 @@ jobs:
- name: ci test-run (nanoserver)
if: matrix.artifact == 'nanoserver'
run: |
>"${{ github.workspace }}\.tests\ci-init.bat" ^(
echo mkdir -p C:\Python
echo 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
echo 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%"
^)
xcopy /Y /Q /R "${{ github.workspace }}\.tests\ci-init-nanoserver.bat.example" "${{ 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
9 changes: 9 additions & 0 deletions .tests/ci-init-nanoserver.bat.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mkdir -p C:\Python && cd C:\Python
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"

mkdir -p C:\git && cd C:\git
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"
tar -xf "git.zip"
setx /M Path "C:\Python;C:\git\bin;C:\git\usr\bin;C:\git\mingw64\bin;%PATH%"

0 comments on commit 6af6808

Please sign in to comment.