Skip to content

Commit

Permalink
win build change 3
Browse files Browse the repository at this point in the history
  • Loading branch information
blandger committed Jan 11, 2025
1 parent 27d127a commit a8fe6dd
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,29 @@ jobs:
cmd.exe /c "echo Current directory: %CD%"
cmd.exe /c "mkdir %GITHUB_WORKSPACE%\epubcheck"
cmd.exe /c "cd %GITHUB_WORKSPACE%\epubcheck"
cmd.exe /c "echo Created directory at: %GITHUB_WORKSPACE%\epubcheck"
# Donwloading and unpack
curl -L -o epubcheck.zip https://github.com/w3c/epubcheck/releases/download/v5.2.0/epubcheck-5.2.0.zip
curl -L -o %GITHUB_WORKSPACE%\epubcheck\epubcheck.zip https://github.com/w3c/epubcheck/releases/download/v5.2.0/epubcheck-5.2.0.zip
cd %GITHUB_WORKSPACE%\epubcheck
cmd.exe /c "echo Changed to directory: %CD%"
7z x epubcheck.zip
# Current dir content
cmd.exe /c "echo EPUBCHECK_JAR=%GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar >> %GITHUB_ENV%"
cmd.exe /c "echo Contents of epubcheck directory:"
cmd.exe /c "dir /s"
echo "EPUBCHECK_PATH=%GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar" >> $GITHUB_ENV
cmd.exe /c "echo Set EPUBCHECK_PATH to: %GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar"
# Сохраним полный путь к jar файлу
# echo "EPUBCHECK_JAR_2=${PWD}/epubcheck-5.2.0/epubcheck.jar" >> $GITHUB_ENV
echo "EPUBCHECK_JAR=${{github.workspace}}/epubcheck/epubcheck-5.2.0/epubcheck.jar" >> $GITHUB_ENV
# Setup full path to jar file
echo "EPUBCHECK_PATH=%GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar" >> $GITHUB_ENV
cmd.exe /c "echo Set EPUBCHECK_PATH to: %GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar"
# Check if file exists
cmd.exe /c "if exist %GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar (echo JAR file exists) else (echo JAR file not found)"
epubcheck-path: "%EPUBCHECK_JAR%"
cmd.exe /c "if exist %GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar (echo JAR file found at: %GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar)"
epubcheck-path: "${{ env.EPUBCHECK_PATH }}"
- os: macos-latest
install-epubcheck: brew install epubcheck
epubcheck-path: epubcheck
Expand Down

0 comments on commit a8fe6dd

Please sign in to comment.