diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c809b7..850b9d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,37 @@ jobs: if: ${{ matrix.toolchain == 'msvc' }} uses: ilammy/msvc-dev-cmd@v1 + - name: install Dependencies analyzer + if: ${{ matrix.toolchain == 'msvc' }} + run: | + $version = "1.11.1" + echo $version + $url = 'https://github.com/lucasg/Dependencies/releases/download/v' + $version + '/Dependencies_x64_Release.zip' + ## $url = 'https://github.com/lucasg/Dependencies/archive/refs/tags/v' + $version + '.zip' + echo $url + $dest = Join-Path -Path $PWD -ChildPath ".dependencies" + echo $dest + ## $unpacked = Join-Path -Path $dest -ChildPath "dependencies-$version" + + # Download and extract Dependencies + New-Item -ItemType Directory -Path "$dest" + Invoke-WebRequest -Uri $url -OutFile "$dest\dependencies.zip" + Expand-Archive -Path "$dest\dependencies.zip" -DestinationPath "$dest" + ## Get-ChildItem -Path $unpacked | Move-Item -Destination $unpacked/../ + + Remove-Item -Path "$dest\dependencies.zip" + ## Remove-Item -Path $unpacked -Recurse + dir "$dest" + + # Add Dependencies to PATH + $env:PATH += ";$dest" + echo $env:PATH + + # Verify Dependencies Installation + dir "$dest\*.exe" + dir ".\.dependencies\Dependencies.exe" + .\.dependencies\Dependencies.exe -help + - uses: leafo/gh-actions-lua@master with: luaVersion: ${{ matrix.luaVersion }} @@ -64,6 +95,7 @@ jobs: dir C:\Users\runneradmin\AppData\Roaming\luarocks\lib\lua\5.4\lfs.dll lua -e "print(require'system.core')" lua -e "print(require'lfs')" + dependencies -json -exports C:\Users\runneradmin\AppData\Roaming\luarocks\lib\lua\5.4\lfs.dll luarocks make - name: test