Skip to content

Commit

Permalink
check exports in dll
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Mar 8, 2024
1 parent 912bb15 commit 02f7968
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,35 @@ 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/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"
.\.dependencies\dependencies.exe -help
- uses: leafo/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
Expand All @@ -64,6 +93,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
Expand Down

0 comments on commit 02f7968

Please sign in to comment.