Skip to content

Commit d0c19d7

Browse files
committed
ci(osmesa): add osmesa to ubtuntu/windows package ci runners
1 parent 8809ce2 commit d0c19d7

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

‎.github/workflows/package.yml‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,23 @@ jobs:
5858
python -m pip install --upgrade pip
5959
pip install .[tauri]
6060
shell: bash -l {0}
61+
62+
- name: Install OSMesa (ubuntu only)
63+
if: matrix.platform == 'ubuntu-22.04'
64+
run: |
65+
sudo apt-get update
66+
sudo apt-get install -y libosmesa6-dev
67+
- name: Install OSMesa (windows only)
68+
if: matrix.platform == 'windows-latest'
69+
# 25.0.7 is the last mesa-dist-win release that ships osmesa.dll
70+
# (removed in 25.1.0). PATH is searched by LoadLibrary, which is how
71+
# VTK's vtkOSOpenGLRenderWindow locates osmesa.dll at runtime.
72+
run: |
73+
curl -sSL -o mesa.7z https://github.com/pal1000/mesa-dist-win/releases/download/25.0.7/mesa3d-25.0.7-release-msvc.7z
74+
7z x mesa.7z -omesa
75+
cygpath -w "$PWD/mesa/x64" >> "$GITHUB_PATH"
76+
shell: bash
77+
6178
- name: Package using PyInstaller
6279
run: |
6380
chmod +x scripts/setup_tauri.sh
@@ -81,7 +98,7 @@ jobs:
8198
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
8299
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
83100
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
84-
- uses: tauri-apps/tauri-action@v1
101+
- uses: tauri-apps/tauri-action@v0
85102
env:
86103
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87104
with:

0 commit comments

Comments
 (0)