Skip to content

Commit

Permalink
Update create_html_pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad authored Dec 11, 2024
1 parent b0a9500 commit ddbfa90
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/create_html_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,23 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up dependencies
#- name: Set up dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y xvfb

#- name: Start virtual frame buffer
# run: |
# export DISPLAY=:100
# echo "Starting virtual frame buffer..."
# Xvfb -ac :100 -screen 0 1280x1024x24 > /dev/null &

- name: Start virtual display server
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb
- name: Start virtual frame buffer
run: |
export DISPLAY=:100
echo "Starting virtual frame buffer..."
Xvfb -ac :100 -screen 0 1280x1024x24 > /dev/null &
- name: Debug Xvfb
run: |
export DISPLAY=:100
Xvfb :99 &
echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Set up Java 11
uses: actions/setup-java@v3
Expand All @@ -44,7 +49,7 @@ jobs:
with:
startup-options: -batch
command: |
setenv('DISPLAY', ':100');
%setenv('DISPLAY', ':100');
addpath(genpath('tools'));
disp('Display environment:')
disp(getenv('DISPLAY'))
Expand Down

0 comments on commit ddbfa90

Please sign in to comment.