Skip to content

Commit

Permalink
change venv location in favor for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrNamenlos123 committed Apr 21, 2024
1 parent d8b3c37 commit 13b8704
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/actions/build-package/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ runs:
perl-version: '5.32'

- name: Install additional packages
if: matrix.cfg.os == 'ubuntu-20.04'
if: contains(matrix.cfg.os, 'ubuntu-')
shell: bash
run: sudo apt update && sudo apt install -y gcc-9 g++-9 gcc-9-arm-linux-gnueabihf g++-9-arm-linux-gnueabihf gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu clang-10

- name: Install Python deps
shell: bash
run: |
python3 -m venv ~/venv
source ~/venv/bin/activate
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
[ -f packages/$PACKAGE/requirements.txt ] && python3 -m pip install -r packages/$PACKAGE/requirements.txt || true
Expand All @@ -42,10 +42,18 @@ runs:
static: 0
platform: x64

- name: Invoke Python build script
- name: Invoke Python build script [Non-Windows]
if: ${{ !contains(matrix.cfg.os, 'windows-') }}
shell: bash
run: |
source ~/venv/bin/activate
source venv/bin/activate
TRIPLE=${{matrix.cfg.triple}} python3 build.py $PACKAGE
- name: Invoke Python build script [Windows]
if: ${{ contains(matrix.cfg.os, 'windows-') }}
shell: bash
run: |
venv/bin/activate.bat
TRIPLE=${{matrix.cfg.triple}} python3 build.py $PACKAGE
- name: Upload files to a GitHub release
Expand Down

0 comments on commit 13b8704

Please sign in to comment.