Skip to content

Commit

Permalink
try using winget /apt-get to get ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
rwood-97 committed Oct 24, 2024
1 parent c72766f commit b980e82
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/mr_ci_text_spotting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ jobs:
with:
python-version: 3.11

- name: Check LongPathsEnabled
- name: Get ninja for Windows
if: matrix.os == 'windows-latest'
run: |
(Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled
winget install --id=Ninja-build.Ninja -e
- name: Get ninja for Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
apt-get install ninja-build
- name: Update pip
run: |
Expand All @@ -37,7 +42,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install wheel ninja
python -m pip install wheel
python -m pip install numpy==1.26.4 torch==2.2.2 torchvision==0.17.2 -f https://download.pytorch.org/whl/torch_stable.html
DCMAKE_OBJECT_PATH_MAX=1024 python -m pip install ".[dev, text]" # all dependencies
python -m pip install pytest-cov
Expand Down

0 comments on commit b980e82

Please sign in to comment.