Skip to content

Commit

Permalink
venv
Browse files Browse the repository at this point in the history
  • Loading branch information
turuslan committed Apr 3, 2024
1 parent 9f21b76 commit 476a1f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/aux/github_venv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# Copyright Quadrivium LLC
# All Rights Reserved
# SPDX-License-Identifier: Apache-2.0
#

GITHUB_ENV="${GITHUB_ENV:?}"
export VIRTUAL_ENV="${1:?venv path not set}"
export PATH="$VIRTUAL_ENV/bin:$PATH"
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
echo "PATH=$PATH" >> "$GITHUB_ENV"
8 changes: 5 additions & 3 deletions .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
clean: true
fetch-depth: 1

- name: venv
run: python3 -m venv --upgrade-deps ~/venv && .github/aux/github_venv.sh $_

- name: install dependencies
run: |
set -e
Expand All @@ -60,9 +63,8 @@ jobs:
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-13 90
fi
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install scikit-build
sudo python3 -m pip install cmake==3.25 requests gitpython gcovr pyyaml
pip3 install scikit-build
pip3 install cmake==3.25 requests gitpython gcovr pyyaml
- name: cmake
env:
Expand Down

0 comments on commit 476a1f4

Please sign in to comment.