Skip to content

Commit fe84934

Browse files
Alexey Pleshakovqrort
Alexey Pleshakov
authored andcommitted
updated container version for UTBot build
1 parent 80facc0 commit fe84934

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/build-utbot.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build UTBot and run unit tests
22

33
on:
4-
# push:
4+
push:
55
pull_request:
66
branches: [main]
77

@@ -12,10 +12,15 @@ jobs:
1212
# It is impossible to parametrize image via workflow environment,
1313
# so its name is hard-coded.
1414
# https://github.com/actions/runner/issues/480
15-
image: ghcr.io/unittestbot/utbotcpp/base_env:github-ci
15+
image: ghcr.io/unittestbot/utbotcpp/base_env:20-10-2021
1616
credentials:
1717
username: ${{ github.actor }}
1818
password: ${{ secrets.GITHUB_TOKEN }}
19+
env:
20+
UTBOT_ALL: /utbot_distr
21+
UTBOT_INSTALL_DIR: /utbot_distr/install
22+
GRPC_PATH: /utbot_distr/install
23+
CLI_PATH: /utbot_distr/cli
1924
steps:
2025
- name: Install git
2126
run: |
@@ -44,7 +49,7 @@ jobs:
4449
needs: build
4550
runs-on: ubuntu-18.04
4651
container:
47-
image: ghcr.io/unittestbot/utbotcpp/base_env:github-ci
52+
image: ghcr.io/unittestbot/utbotcpp/base_env:20-10-2021
4853
credentials:
4954
username: ${{ github.actor }}
5055
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-base-env.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish UTBot base environment image
22
on:
3-
push:
4-
# workflow_dispatch:
3+
# push:
4+
workflow_dispatch:
55

66
env:
77
REGISTRY: ghcr.io

server/CMakeLists.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ add_definitions(-DLOGURU_WITH_STREAMS=1)
4141
SET(GCC_COVERAGE_LINK_FLAGS "-lpthread -ldl")
4242
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
4343

44-
set(LOGGER_DIR "${PROJECT_SOURCE_DIR}/loguru")
44+
get_filename_component(UTBOT_DIR ${PROJECT_SOURCE_DIR} DIRECTORY)
45+
set(LOGGER_DIR "${UTBOT_DIR}/loguru")
4546
add_library(loguru ${LOGGER_DIR}/loguru.cpp)
4647
include_directories(${LOGGER_DIR})
4748

48-
set(JSON_PATH "${PROJECT_SOURCE_DIR}/json")
49+
set(JSON_PATH "${UTBOT_DIR}/json")
4950
include_directories(${JSON_PATH}/include)
5051

51-
set(TSL_PATH "${PROJECT_SOURCE_DIR}/ordered-map")
52+
set(TSL_PATH "${UTBOT_DIR}/ordered-map")
5253
include_directories(${TSL_PATH}/include)
5354

54-
set(PARALLEL_HASHMAP_PATH "${PROJECT_SOURCE_DIR}/parallel-hashmap")
55+
set(PARALLEL_HASHMAP_PATH "${UTBOT_DIR}/parallel-hashmap")
5556
include_directories(${PARALLEL_HASHMAP_PATH})
5657

5758
set(KLEE_PATH $ENV{UTBOT_ALL}/klee/)

0 commit comments

Comments
 (0)