Skip to content

Commit

Permalink
Update build-win.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
olvidalo authored Nov 25, 2024
1 parent 660bbe5 commit 3e42cfa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
defaults:
run:
shell: msys2 {0}
env:
VENV_PATH: .venv

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -59,16 +61,16 @@ jobs:
- name: Set up Python environment
run: |
python -m venv --system-site-packages .venv
source .venv/bin/activate
python -m venv --system-site-packages $VENV_PATH
source $VENV_PATH/bin/activate
python -m pip install --upgrade pip
pip install gphoto2 --user --no-binary :all:
pip install pyinstaller
python -m pip install -r requirements.txt
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
- name: Build
run: |
source $VENV_PATH/bin/activate
chmod +x build_win.sh
./build_win.sh
Expand Down

0 comments on commit 3e42cfa

Please sign in to comment.