Skip to content

Commit

Permalink
Debug macOS screen resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Oct 19, 2023
1 parent f2d11d9 commit 48858cd
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,25 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-12, windows-2022]
os: [macos-13]

steps:
- name: Check-out repository
uses: actions/checkout@v3


- name: Set up screen (macOS)
if: runner.os == 'macOS'
run: |
brew install screenresolution
screenresolution list
screenresolution get
system_profiler SPDisplaysDataType | grep Resolution
screenresolution set 1920x1080x32@30
screenresolution get
- name: Set up Python environment
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -69,7 +82,6 @@ jobs:
python -m pip install git+https://github.com/ikibalin/cryspy.git@beta
python -m pip install git+https://github.com/easyscience/EasyApp.git@new-easy-app2
- name: Create python resources file
run: |
cd ${{ env.PACKAGE_NAME }}
Expand All @@ -90,11 +102,22 @@ jobs:
Xvfb :0 -screen 0 1920x1080x24 -ac &
echo "DISPLAY=:0" >> $GITHUB_ENV
# Method 1:
# Not working since Oct 2023. VMware is replaced by VirtualBox
# "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080
# system_profiler SPDisplaysDataType | grep Resolution
# Method 2:
# Worked on macOS 12.6.9, but the default resolution already was 1920x1080: https://github.com/easyScience/EasyDiffractionBeta/actions/runs/6575129372/job/17861583655
# Fails on macOS 12.7, where default resolution is 1176x885: https://github.com/easyScience/EasyDiffractionBeta/actions/runs/6576347514/job/17865526935
- name: Set up screen (macOS)
if: runner.os == 'macOS'
run: |
"/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080
brew install screenresolution
screenresolution list
screenresolution get
system_profiler SPDisplaysDataType | grep Resolution
screenresolution set 1920x1080x32@30
screenresolution get
- name: Set up screen (Windows)
if: runner.os == 'Windows'
Expand Down Expand Up @@ -229,11 +252,18 @@ jobs:
Xvfb :0 -screen 0 1920x1080x24 -ac &
echo "DISPLAY=:0" >> $GITHUB_ENV
# Method 1: Not working since Oct 2023. VMware is replaced by VirtualBox
# "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080
# system_profiler SPDisplaysDataType | grep Resolution
# Method 2
- name: Set up screen (macOS)
if: runner.os == 'macOS'
run: |
"/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080
system_profiler SPDisplaysDataType | grep Resolution
brew install screenresolution
screenresolution list
screenresolution get
screenresolution set 1920x1080x32@30
screenresolution get
- name: Set up screen (Windows)
if: runner.os == 'Windows'
Expand Down

0 comments on commit 48858cd

Please sign in to comment.