From d261ca1ba6029359d3ad117690a9fb55d0a73c91 Mon Sep 17 00:00:00 2001 From: Jonas Geiler Date: Sun, 19 May 2024 22:07:51 +0200 Subject: [PATCH] chore: success with test window check workflow! now optimizing --- .github/workflows/test-windows-check.yml | 34 ++++++++++++++++++++---- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-windows-check.yml b/.github/workflows/test-windows-check.yml index da9a894..79cf499 100644 --- a/.github/workflows/test-windows-check.yml +++ b/.github/workflows/test-windows-check.yml @@ -12,14 +12,38 @@ jobs: - name: Checkout uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - - name: Setup Microsoft Visual C++ Developer Command Prompt - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 +# - name: Setup Microsoft Visual C++ Developer Command Prompt +# uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 + + - name: Install dependencies analyzer + # action step used for troubleshooting if Windows dll's build incorrectly + 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 - name: Setup Lua uses: hishamhm/gh-actions-lua@master with: - luaVersion: 5.4 - buildCache: false + luaVersion: luajit + buildCache: false # required for now, need to delete cache somehow? - name: Setup LuaRocks uses: hishamhm/gh-actions-luarocks@master @@ -30,4 +54,4 @@ jobs: run: luarocks make - name: Run a basic test - run: lua -e "local fenster = require('fenster');print(fenster.time())" + run: luarocks test -- --verbose --output TAP --exclude-tags needsdisplay