Skip to content

Commit 517f279

Browse files
author
Dammy Desktop
committed
fixing publish installation
1 parent 61fae1c commit 517f279

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
workflow_dispatch: # Allows you to run this manually for testing
78

89
jobs:
910
test:
@@ -19,20 +20,21 @@ jobs:
1920
cache: "pip"
2021

2122
- name: Install System Dependencies
22-
# Ubuntu runners need these for OpenCV and imageio[ffmpeg] to work
23+
# Fixes the 'libgl1-mesa-glx' error by using modern packages
2324
run: |
2425
sudo apt-get update
25-
sudo apt-get install -y ffmpeg libgl1-mesa-glx
26+
sudo apt-get install -y ffmpeg libgl1 libglx-mesa0 libglib2.0-0
2627
27-
- name: Install PyTorch (CPU version)
28-
# We use the CPU version for testing to make the runner faster/lighter
28+
- name: Install PyTorch (CPU)
29+
# Must be installed separately before Detectron2
2930
run: |
3031
pip install torch==2.2.0 torchvision==0.17.0 --index-url https://download.pytorch.org/whl/cpu
32+
pip install ninja wheel setuptools
3133
3234
- name: Install Detectron2
33-
# Linux can build this from Git easily once Torch is present
35+
# --no-build-isolation is the key to preventing the 'Getting Requirements' error
3436
run: |
35-
pip install --no-build-isolation 'git+https://github.com/facebookresearch/detectron2.git'
37+
pip install --no-build-isolation git+https://github.com/facebookresearch/detectron2.git
3638
3739
- name: Install Pupil_LIMlab
3840
run: |
@@ -49,7 +51,7 @@ jobs:
4951
name: pypi
5052
url: https://pypi.org/p/Pupil_LIMlab
5153
permissions:
52-
id-token: write # Required for Trusted Publishing
54+
id-token: write
5355
contents: read
5456

5557
steps:

0 commit comments

Comments
 (0)