Skip to content

Commit

Permalink
fix: windows sccache not working
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan authored Nov 27, 2023
1 parent c5f6191 commit fc60ee0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
10 changes: 4 additions & 6 deletions .github/actions/build-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ runs:
uses: MinoruSekine/setup-scoop@main

- name: Setup SCCache
shell: cmd
shell: pwsh
run: |
scoop install sccache
set "sccacheDir=%GITHUB_WORKSPACE%\.sccache"
if not exist "%sccacheDir%" (
mkdir "%sccacheDir%"
)
$sccacheDir = "$Env:GITHUB_WORKSPACE`\.sccache"
New-Item -Path "$sccacheDir" -ItemType Directory -Force
echo SCCACHE_DIR=%sccacheDir% >> "%GITHUB_ENV%"
echo "SCCACHE_DIR=$sccacheDir" >> "$Env:GITHUB_ENV"
- name: Download V8 Source
shell: cmd
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
```
.
├── VERSION # Current V8 version
├── archive.ps1 # Archive V8 library for Windows
├── archive.bat # Archive V8 library for Windows
├── archive.sh # Archive V8 library for Linux and macOS
├── args
│ ├── Linux.gn # GN args for Linux
│ ├── Windows.gn # GN args for Windows
│ └── macOS.gn # GN args for macOS
├── requirements.txt # Python requirements
├── v8_compile.ps1 # Compile V8 library for Windows
├── v8_compile.bat # Compile V8 library for Windows
├── v8_compile.sh # Compile V8 library for Linux and macOS
├── v8_download.ps1 # Download V8 source code for Windows
├── v8_download.bat # Download V8 source code for Windows
├── v8_download.sh # Download V8 source code for Linux and macOS
├── v8_test.bat # Test V8 library for Windows
└── v8_test.sh # Test V8 library for Linux and macOS
Expand Down
4 changes: 2 additions & 2 deletions archive.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ if not exist "%outputDir%" (
)

xcopy /E /I /Q /Y "%dir%\v8\include" "%outputDir%"
xcopy /E /I /Q /Y "%dir%\v8\out\release\obj\v8_monolith.lib" "%outputDir%"
xcopy /E /I /Q /Y "%dir%\gn-args_%os%.txt" "%outputDir%"
copy /Y "%dir%\v8\out\release\obj\v8_monolith.lib" "%outputDir%"
copy /Y "%dir%\gn-args_%os%.txt" "%outputDir%"

where 7z >nul 2>nul
if errorlevel 1 (
Expand Down

0 comments on commit fc60ee0

Please sign in to comment.