Skip to content

Commit

Permalink
Try not moving Git in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danyeaw committed Feb 17, 2024
1 parent d0cc3f1 commit b7536a5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,8 @@ jobs:
- name: Install dependencies
run: |
pip install tox tox-gh-actions
# Temporarily move the preinstalled git, it causes errors related to cygwin.
- name: Move git binary
run: |
Move-Item "C:\Program Files\Git\usr\bin" "C:\Program Files\Git\usr\notbin"
Move-Item "C:\Program Files\Git\bin" "C:\Program Files\Git\notbin"
- name: Test with tox
run: tox
- name: Restore git binary
run: |
Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin"
Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin"

build:
needs: lint
Expand Down Expand Up @@ -127,11 +118,6 @@ jobs:
poetry config virtualenvs.in-project true
- name: Install Python Dependencies
run: poetry install
# Temporarily move the preinstalled git, it causes errors related to cygwin.
- name: Move git binary
run: |
Move-Item "C:\Program Files\Git\usr\bin" "C:\Program Files\Git\usr\notbin"
Move-Item "C:\Program Files\Git\bin" "C:\Program Files\Git\notbin"
- name: Build GTK3
if: matrix.gtk-version == '3'
run: >
Expand All @@ -142,10 +128,6 @@ jobs:
run: > # Use -j2 option to prevent out of memory errors with GitHub Action runners
poetry run gvsbuild build --ninja-opts -j2 --enable-gi cairo gtk4 libadwaita
gtksourceview5 gobject-introspection adwaita-icon-theme hicolor-icon-theme
- name: Restore git binary
run: |
Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin"
Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin"
- name: Copy wheel files
if: github.event_name == 'release'
run: |
Expand Down

0 comments on commit b7536a5

Please sign in to comment.