-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# action.yml | ||
name: 'Checks installation process' | ||
description: 'Checks installation process' | ||
inputs: | ||
branch: # Current branch | ||
description: ' Current branch' | ||
required: false | ||
default: 'main' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
#!/bin/sh -l | ||
set -e | ||
|
||
echo "::group::Configure EVE" | ||
echo "::group::Prepare EVE repository for branch " $1 | ||
mkdir build && cd build | ||
cmake .. -G Ninja | ||
echo "::endgroup::" | ||
|
||
echo "::group::Install EVE" | ||
ninja install | grep cmake | ||
CURRENT_SHA1=`git rev-parse HEAD` | ||
cd .. | ||
echo "::endgroup::" | ||
|
||
echo "::group::Compile EVE-dependent project" | ||
echo "::group::Test EVE via the install target" | ||
mkdir install-test && cd install-test | ||
cmake ../integration/install-test -G Ninja | ||
ninja test_eve | ||
./test_eve | ||
cd .. | ||
echo "::endgroup::" | ||
|
||
echo "::group::Test EVE via FetchContent" | ||
mkdir fetch-test && cd fetch-test | ||
cmake ../integration/fetch-test -G Ninja -DEVE_SHA1=$1 | ||
ninja test_eve | ||
./test_eve | ||
cd .. | ||
echo "::endgroup::" | ||
|
||
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
##================================================================================================== | ||
## EVE - Expressive Vector Engine | ||
## Copyright : EVE Contributors & Maintainers | ||
## SPDX-License-Identifier: MIT | ||
##================================================================================================== | ||
cmake_minimum_required(VERSION 3.19) | ||
project(eve-install-test LANGUAGES CXX) | ||
|
||
message(STATUS "Testing FetchContent for branch ${EVE_SHA1}") | ||
|
||
# Enable FetchContent | ||
include(FetchContent) | ||
|
||
# Retrieve EVE | ||
FetchContent_Declare(eve | ||
GIT_REPOSITORY https://github.com/jfalcou/eve.git | ||
GIT_TAG ${EVE_SHA1} | ||
) | ||
|
||
FetchContent_MakeAvailable(eve) | ||
|
||
# make available | ||
add_executable(test_eve ../main.cpp) | ||
target_link_libraries(test_eve PUBLIC eve::eve) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters