Skip to content

Commit

Permalink
more windows, and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Mar 9, 2024
1 parent eb6d195 commit feda947
Showing 1 changed file with 19 additions and 35 deletions.
54 changes: 19 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,27 @@ jobs:
luaVersion: "5.4"
- os: "windows-latest"
luaVersion: "luajit"
# Windows MSVC
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.1"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.2"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.3"
- os: "windows-latest"
toolchain: "msvc"
luaVersion: "5.4"
# Windows MinGW
- os: "windows-latest"
luaVersion: "5.1"
- os: "windows-latest"
luaVersion: "5.2"
- os: "windows-latest"
luaVersion: "5.3"
- os: "windows-latest"
luaVersion: "5.4"

runs-on: ${{ matrix.os }}
Expand All @@ -48,30 +67,6 @@ 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 "Installing Dependencies version: $version"
$url = 'https://github.com/lucasg/Dependencies/releases/download/v' + $version + '/Dependencies_x64_Release.zip'
$dest = Join-Path -Path $PWD -ChildPath ".dependencies"
# 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"
Remove-Item -Path "$dest\dependencies.zip"
# 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: hishamhm/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
Expand All @@ -83,17 +78,6 @@ jobs:
- name: dependencies
run: |
luarocks install busted
luarocks config
luarocks show luafilesystem
- name: check dependencies
if: ${{ matrix.toolchain == 'msvc' }}
run: |
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\Dependencies.exe -json -exports C:\Users\runneradmin\AppData\Roaming\luarocks\lib\lua\5.4\lfs.dll
luarocks make
- name: test
run: |
Expand Down

0 comments on commit feda947

Please sign in to comment.