Spaces:
Paused
Paused
Mirrowel
commited on
Commit
·
e7b5957
1
Parent(s):
fa4dd7c
ci(build): 🎡 conditionally activate virtualenv on Windows runners
Browse files- .github/workflows/build.yml +10 -2
.github/workflows/build.yml
CHANGED
|
@@ -45,7 +45,11 @@ jobs:
|
|
| 45 |
shell: bash
|
| 46 |
run: |
|
| 47 |
grep -v -- '-e src/rotator_library' requirements.txt > temp_requirements.txt
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
uv pip install -r temp_requirements.txt
|
| 50 |
uv pip install pyinstaller
|
| 51 |
uv pip install -e src/rotator_library
|
|
@@ -73,7 +77,11 @@ jobs:
|
|
| 73 |
- name: Build executable
|
| 74 |
shell: bash
|
| 75 |
run: |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
if [ "${{ runner.os }}" == "Windows" ]; then
|
| 49 |
+
. .venv/Scripts/activate
|
| 50 |
+
else
|
| 51 |
+
source .venv/bin/activate
|
| 52 |
+
fi
|
| 53 |
uv pip install -r temp_requirements.txt
|
| 54 |
uv pip install pyinstaller
|
| 55 |
uv pip install -e src/rotator_library
|
|
|
|
| 77 |
- name: Build executable
|
| 78 |
shell: bash
|
| 79 |
run: |
|
| 80 |
+
if [ "${{ runner.os }}" == "Windows" ]; then
|
| 81 |
+
. .venv/Scripts/activate
|
| 82 |
+
else
|
| 83 |
+
source .venv/bin/activate
|
| 84 |
+
fi
|
| 85 |
python src/proxy_app/build.py
|
| 86 |
|
| 87 |
- name: Ensure PyInstaller cache directory exists
|