Skip to content

Commit

Permalink
test builds 6
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeySeroshtan committed Dec 2, 2024
1 parent a199167 commit e244217
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
push: true
tags: localhost:5000/virgil-crypto-c-arm64:latest

- name: Inspect
- name: Copy artifacts
run: |
docker buildx imagetools inspect localhost:5000/virgil-crypto-c-arm64:latest
DOCKER_CONTAINER_NAME=$(docker container list -l | grep virgil-crypto-c-arm64 | awk 'NF>1{print $NF}')
docker cp $DOCKER_CONTAINER_NAME:/home/build-dir/install ./install
ls -l install
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ include(GNUInstallDirs)
if (NOT DEFINED ENV{VIRTUAL_ENV})
message(STATUS "Create python virtual environment...")
set(ENV{VIRTUAL_ENV} "${CMAKE_CURRENT_BINARY_DIR}/.venv")
set(ENV{PATH} "$ENV{VIRTUAL_ENV}/bin:$ENV{PATH}")
execute_process(COMMAND python3 -m venv "$ENV{VIRTUAL_ENV}")
endif()

set(ENV{PATH} "$ENV{VIRTUAL_ENV}/bin:$ENV{PATH}")
execute_process(COMMAND pip3 install -U -r "${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt")

# ---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get install -y build-essential cmake git python3 python3-pip python3-ven
WORKDIR /home/build-dir

COPY . .
RUN cmake -S . -B build
RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/build-dir/install
RUN cmake --build build -j10
WORKDIR /home/build-dir/build
RUN ctest --output-on-failure
Expand Down

0 comments on commit e244217

Please sign in to comment.