Fix default value in release workflows (#1418)
This commit is contained in:
parent
80e1fba8f5
commit
e9f3a5fd1b
14
.github/workflows/release_centos8.yaml
vendored
14
.github/workflows/release_centos8.yaml
vendored
@ -40,9 +40,13 @@ jobs:
|
|||||||
# Initialize dependencies.
|
# Initialize dependencies.
|
||||||
./init
|
./init
|
||||||
|
|
||||||
|
# Set default build_type to Release
|
||||||
|
INPUT_BUILD_TYPE=${{ github.event.inputs.build_type }}
|
||||||
|
BUILD_TYPE=${INPUT_BUILD_TYPE:-"Release"}
|
||||||
|
|
||||||
# Build community binaries.
|
# Build community binaries.
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.build_type }} -DMG_ENTERPRISE=OFF ..
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DMG_ENTERPRISE=OFF ..
|
||||||
make -j$THREADS
|
make -j$THREADS
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
@ -197,11 +201,15 @@ jobs:
|
|||||||
# Initialize dependencies.
|
# Initialize dependencies.
|
||||||
./init
|
./init
|
||||||
|
|
||||||
|
# Set default build_type to Release
|
||||||
|
INPUT_BUILD_TYPE=${{ github.event.inputs.build_type }}
|
||||||
|
BUILD_TYPE=${INPUT_BUILD_TYPE:-"Release"}
|
||||||
|
|
||||||
# Build release binaries.
|
# Build release binaries.
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.build_type }} ..
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||||
make -j$THREADS
|
make -j$THREADS
|
||||||
|
|
||||||
- name: Create enterprise RPM package
|
- name: Create enterprise RPM package
|
||||||
run: |
|
run: |
|
||||||
# Activate toolchain.
|
# Activate toolchain.
|
||||||
|
19
.github/workflows/release_debian10.yaml
vendored
19
.github/workflows/release_debian10.yaml
vendored
@ -40,9 +40,13 @@ jobs:
|
|||||||
# Initialize dependencies.
|
# Initialize dependencies.
|
||||||
./init
|
./init
|
||||||
|
|
||||||
|
# Set default build_type to Release
|
||||||
|
INPUT_BUILD_TYPE=${{ github.event.inputs.build_type }}
|
||||||
|
BUILD_TYPE=${INPUT_BUILD_TYPE:-"Release"}
|
||||||
|
|
||||||
# Build community binaries.
|
# Build community binaries.
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.build_type }} -DMG_ENTERPRISE=OFF ..
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DMG_ENTERPRISE=OFF ..
|
||||||
make -j$THREADS
|
make -j$THREADS
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
@ -197,9 +201,13 @@ jobs:
|
|||||||
# Initialize dependencies.
|
# Initialize dependencies.
|
||||||
./init
|
./init
|
||||||
|
|
||||||
|
# Set default build_type to Release
|
||||||
|
INPUT_BUILD_TYPE=${{ github.event.inputs.build_type }}
|
||||||
|
BUILD_TYPE=${INPUT_BUILD_TYPE:-"Release"}
|
||||||
|
|
||||||
# Build release binaries.
|
# Build release binaries.
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.build_type }} ..
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||||
make -j$THREADS
|
make -j$THREADS
|
||||||
|
|
||||||
- name: Create enterprise DEB package
|
- name: Create enterprise DEB package
|
||||||
@ -329,9 +337,14 @@ jobs:
|
|||||||
source /opt/toolchain-v4/activate
|
source /opt/toolchain-v4/activate
|
||||||
# Initialize dependencies.
|
# Initialize dependencies.
|
||||||
./init
|
./init
|
||||||
|
|
||||||
|
# Set default build_type to Release
|
||||||
|
INPUT_BUILD_TYPE=${{ github.event.inputs.build_type }}
|
||||||
|
BUILD_TYPE=${INPUT_BUILD_TYPE:-"Release"}
|
||||||
|
|
||||||
# Build only memgraph release binary.
|
# Build only memgraph release binary.
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.build_type }} ..
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||||
make -j$THREADS memgraph
|
make -j$THREADS memgraph
|
||||||
|
|
||||||
- name: Run Jepsen tests
|
- name: Run Jepsen tests
|
||||||
|
12
.github/workflows/release_ubuntu2004.yaml
vendored
12
.github/workflows/release_ubuntu2004.yaml
vendored
@ -40,9 +40,13 @@ jobs:
|
|||||||
# Initialize dependencies.
|
# Initialize dependencies.
|
||||||
./init
|
./init
|
||||||
|
|
||||||
|
# Set default build_type to Release
|
||||||
|
INPUT_BUILD_TYPE=${{ github.event.inputs.build_type }}
|
||||||
|
BUILD_TYPE=${INPUT_BUILD_TYPE:-"Release"}
|
||||||
|
|
||||||
# Build community binaries.
|
# Build community binaries.
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.build_type }} -DMG_ENTERPRISE=OFF ..
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DMG_ENTERPRISE=OFF ..
|
||||||
make -j$THREADS
|
make -j$THREADS
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
@ -197,9 +201,13 @@ jobs:
|
|||||||
# Initialize dependencies.
|
# Initialize dependencies.
|
||||||
./init
|
./init
|
||||||
|
|
||||||
|
# Set default build_type to Release
|
||||||
|
INPUT_BUILD_TYPE=${{ github.event.inputs.build_type }}
|
||||||
|
BUILD_TYPE=${INPUT_BUILD_TYPE:-"Release"}
|
||||||
|
|
||||||
# Build release binaries.
|
# Build release binaries.
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.build_type }} ..
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||||
make -j$THREADS
|
make -j$THREADS
|
||||||
|
|
||||||
- name: Create enterprise DEB package
|
- name: Create enterprise DEB package
|
||||||
|
@ -239,6 +239,9 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
if (DEFINED CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE)
|
||||||
|
message(FATAL_ERROR "CMake build type was set as empty, most likely a mistake")
|
||||||
|
endif()
|
||||||
|
|
||||||
# default build type is debug
|
# default build type is debug
|
||||||
if (NOT CMAKE_BUILD_TYPE)
|
if (NOT CMAKE_BUILD_TYPE)
|
||||||
|
Loading…
Reference in New Issue
Block a user