Mirrowel commited on
Commit
fa4dd7c
·
1 Parent(s): 3f0dfa0

ci(build): 🎡 suppress virtualenv activation error output on non-POSIX runners

Browse files

Silence stderr when sourcing the POSIX venv activation and fall back to the Windows activation to reduce noisy errors in the build workflow.

- redirect `source .venv/bin/activate` stderr to `/dev/null` so failures on non-POSIX shells don't emit errors
- apply the same change in the "Build executable" step for consistency

Files changed (1) hide show
  1. .github/workflows/build.yml +2 -2
.github/workflows/build.yml CHANGED
@@ -45,7 +45,7 @@ jobs:
45
  shell: bash
46
  run: |
47
  grep -v -- '-e src/rotator_library' requirements.txt > temp_requirements.txt
48
- source .venv/bin/activate || . .venv/Scripts/activate
49
  uv pip install -r temp_requirements.txt
50
  uv pip install pyinstaller
51
  uv pip install -e src/rotator_library
@@ -73,7 +73,7 @@ jobs:
73
  - name: Build executable
74
  shell: bash
75
  run: |
76
- source .venv/bin/activate || . .venv/Scripts/activate
77
  python src/proxy_app/build.py
78
 
79
  - name: Ensure PyInstaller cache directory exists
 
45
  shell: bash
46
  run: |
47
  grep -v -- '-e src/rotator_library' requirements.txt > temp_requirements.txt
48
+ source .venv/bin/activate 2>/dev/null || source .venv/Scripts/activate
49
  uv pip install -r temp_requirements.txt
50
  uv pip install pyinstaller
51
  uv pip install -e src/rotator_library
 
73
  - name: Build executable
74
  shell: bash
75
  run: |
76
+ source .venv/bin/activate 2>/dev/null || source .venv/Scripts/activate
77
  python src/proxy_app/build.py
78
 
79
  - name: Ensure PyInstaller cache directory exists