Skip to content

Test Windows Check (temporary) #13

Test Windows Check (temporary)

Test Windows Check (temporary) #13

name: Test Windows Check (temporary)
on:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: windows-latest
steps:
- 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: 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: luajit
buildCache: false # required for now, need to delete cache somehow?
- name: Setup LuaRocks
uses: hishamhm/gh-actions-luarocks@master
with:
luarocksVersion: "3.11.0"
- name: Build fenster
run: luarocks make
- name: Run a basic test
run: luarocks test -- --verbose --output TAP --exclude-tags needsdisplay