Skip to content

Commit

Permalink
CI automation test: ubuntu only (windows github runners are to worrys…
Browse files Browse the repository at this point in the history
…ome)
  • Loading branch information
pthom committed Jun 6, 2024
1 parent 36e3658 commit cb21416
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/ci_automation_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
platform: [ubuntu-latest]
# platform: [windows-latest, ubuntu-latest]
# this does not work under macos-latest (may be "Off-screen Mesa" could help)

Expand Down Expand Up @@ -45,38 +45,38 @@ jobs:
cmake .. -DCMAKE_BUILD_TYPE=Release -DHELLOIMGUI_WIN32_NO_CONSOLE=OFF -DHELLOIMGUI_WIN32_AUTO_WINMAIN=OFF -DHELLOIMGUI_DOWNLOAD_FREETYPE_IF_NEEDED=ON
cmake --build . -j 3 --config Release
- name: install mesa OpenGL software renderer (windows only)
shell: bash
if: ${{ matrix.platform == 'windows-latest' }}
run: |
# Download the archive
curl -L -O https://github.com/pal1000/mesa-dist-win/releases/download/23.1.9/mesa3d-23.1.9-release-msvc.7z
# Extract the archive using 7-zip which is preinstalled on the GitHub Actions Windows runner
7z x mesa3d-23.1.9-release-msvc.7z -omesa3d
# Optionally move/copy the required DLLs to the directory of your executable
# For this example, I'll assume your executable is in '.github/ci_automation_tests/build'
# Copy the opengl32.dll to your executable directory
cp mesa3d/x64/*.* .github/ci_automation_tests/build/Release
- name: Run C++ Automation Test (windows)
shell: bash
if: ${{ matrix.platform == 'windows-latest' }}
run: |
cd .github/ci_automation_tests/build/Release
# Run the application, but don't exit the script even if it fails
# Under windows, the app works well a local machine and on GitHub CI
# However it ends with a segfault on Github CI, althought it did run to the end.
# Let's detect this via an old-style hack.
./ci_automation_test_app_bundle.exe || true
# - name: install mesa OpenGL software renderer (windows only)
# shell: bash
# if: ${{ matrix.platform == 'windows-latest' }}
# run: |
# # Download the archive
# curl -L -O https://github.com/pal1000/mesa-dist-win/releases/download/23.1.9/mesa3d-23.1.9-release-msvc.7z
#
# # Extract the archive using 7-zip which is preinstalled on the GitHub Actions Windows runner
# 7z x mesa3d-23.1.9-release-msvc.7z -omesa3d
#
# # Optionally move/copy the required DLLs to the directory of your executable
# # For this example, I'll assume your executable is in '.github/ci_automation_tests/build'
# # Copy the opengl32.dll to your executable directory
# cp mesa3d/x64/*.* .github/ci_automation_tests/build/Release

# Now check for the success file
if [[ ! -f ci_automation_test_app_success.txt ]]; then
echo "Error: ci_automation_test_app_success.txt not found!"
exit 1
fi
# - name: Run C++ Automation Test (windows)
# shell: bash
# if: ${{ matrix.platform == 'windows-latest' }}
# run: |
# cd .github/ci_automation_tests/build/Release
#
# # Run the application, but don't exit the script even if it fails
# # Under windows, the app works well a local machine and on GitHub CI
# # However it ends with a segfault on Github CI, althought it did run to the end.
# # Let's detect this via an old-style hack.
# ./ci_automation_test_app_bundle.exe || true
#
# # Now check for the success file
# if [[ ! -f ci_automation_test_app_success.txt ]]; then
# echo "Error: ci_automation_test_app_success.txt not found!"
# exit 1
# fi

- name: Run C++ Automation Test (nixes)
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ jobs:
- name: pytest
run: pytest

- name: CI Automation python test (windows and ubuntu)
- name: CI Automation python test (ubuntu)
shell: bash
if: ${{ matrix.platform == 'ubuntu-latest' || matrix.platform == 'windows-latest' }}
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: |
cd .github/ci_automation_tests
python ci_automation_test_app_bundle.py

0 comments on commit cb21416

Please sign in to comment.