Skip to content

Commit

Permalink
WIP: try venv
Browse files Browse the repository at this point in the history
JerryScript-DCO-1.0-Signed-off-by: Máté Tokodi mate.tokodi@szteszoftver.hu
  • Loading branch information
matetokodi committed Dec 13, 2023
1 parent d6b2966 commit 4073625
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ jobs:
with:
python-version: '>=3.6'
- run: sudo apt update
- run: sudo apt install gcc-arm-none-eabi mercurial make git python3-pip python3-setuptools python3-dev
- run: sudo apt install gcc-arm-none-eabi mercurial make git python3-pip python3-setuptools python3-dev python3-venv
- run: make -f ./targets/os/mbedos/Makefile.travis install
- run: make -f ./targets/os/mbedos/Makefile.travis script

Expand Down
1 change: 1 addition & 0 deletions targets/os/mbedos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ flash: .mbed-set-flash-flag .build

.PHONY: .mbed-build
.mbed-build:
. ../venv/bin/activate
mbed config -G MBED_OS_DIR $(MBED_OS_DIR)
mbed compile $(strip $(MBED_CLI_FLAGS))

Expand Down
2 changes: 2 additions & 0 deletions targets/os/mbedos/Makefile.travis
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ install-mbedos:

# Deploy Mbed and install Mbed Python dependencies.
install-mbedos-deps:
python3 -m venv ../venv
. ../venv/bin/activate
pip3 install --upgrade pip
pip3 install mbed-tools
pip3 install -r ../mbed-os/requirements.txt
Expand Down

0 comments on commit 4073625

Please sign in to comment.