Skip to content

Commit e5daef0

Browse files
Update CI workflow for Windows tray icons and test timeout
Adds a step to enable all tray icons on Windows runners and increases the test timeout from 1 to 3 minutes. Also updates output redirection syntax for better compatibility.
1 parent e7d8904 commit e5daef0

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
111111
# step output
112112
echo "python-path=${python_path}"
113-
echo "python-path=${python_path}" >> $GITHUB_OUTPUT
113+
echo "python-path=${python_path}" >> "${GITHUB_OUTPUT}"
114114
115115
- name: Build
116116
run: |
@@ -131,10 +131,24 @@ jobs:
131131
-S .
132132
ninja -C build
133133
134+
- name: Init tray icon (Windows)
135+
if: runner.os == 'Windows'
136+
working-directory: build/tests
137+
run: ./test_tray --gtest_color=yes --gtest_filter=TrayTest.TestTrayInit
138+
139+
- name: Show all tray icons (Windows)
140+
if: runner.os == 'Windows'
141+
shell: pwsh
142+
run: |
143+
Invoke-WebRequest `
144+
-Uri "https://raw.githubusercontent.com/paulmann/windows-show-all-tray-icons/main/Enable-AllTrayIcons.ps1" `
145+
-OutFile "Enable-AllTrayIcons.ps1"
146+
.\Enable-AllTrayIcons.ps1 -Action Enable -Force # Enable with comprehensive method (resets ALL icon settings)
147+
134148
- name: Run tests
135149
id: test
136150
# TODO: tests randomly hang on Linux, https://github.com/LizardByte/tray/issues/45
137-
timeout-minutes: 1
151+
timeout-minutes: 3
138152
working-directory: build/tests
139153
run: |
140154
if [ "${{ runner.os }}" = "Linux" ]; then
@@ -197,7 +211,7 @@ jobs:
197211
if [ -n "${{ matrix.appindicator }}" ]; then
198212
flags="${flags},${{ matrix.appindicator }}"
199213
fi
200-
echo "flags=${flags}" >> $GITHUB_OUTPUT
214+
echo "flags=${flags}" >> "${GITHUB_OUTPUT}"
201215
202216
- name: Upload coverage
203217
# any except canceled or skipped

0 commit comments

Comments
 (0)