-
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
8 changed files
with
78 additions
and
2 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
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,8 @@ | ||
# Container image that runs your code | ||
FROM jfalcou/compilers:v4 | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,6 @@ | ||
# action.yml | ||
name: 'Checks installation process' | ||
description: 'Checks installation process' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' |
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,21 @@ | ||
#!/bin/sh -l | ||
set -e | ||
|
||
echo "::group::Configure EVE" | ||
mkdir build && cd build | ||
cmake .. -G Ninja | ||
echo "::endgroup::" | ||
|
||
echo "::group::Install EVE" | ||
ninja install | grep cmake | ||
cd .. | ||
echo "::endgroup::" | ||
|
||
echo "::group::Compile EVE-dependent project" | ||
mkdir install-test && cd install-test | ||
cmake ../integration/install-test -G Ninja | ||
ninja test_eve | ||
./test_eve | ||
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
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,14 @@ | ||
##================================================================================================== | ||
## EVE - Expressive Vector Engine | ||
## Copyright : EVE Contributors & Maintainers | ||
## SPDX-License-Identifier: MIT | ||
##================================================================================================== | ||
cmake_minimum_required(VERSION 3.22) | ||
project(eve-install-test LANGUAGES CXX) | ||
|
||
find_package(eve) | ||
|
||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/local/lib") | ||
|
||
add_executable(test_eve main.cpp) | ||
target_link_libraries(test_eve PUBLIC ${EVE_LIBRARIES}) |
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,13 @@ | ||
#include <iostream> | ||
#include <eve/wide.hpp> | ||
#include <eve/module/core.hpp> | ||
|
||
int main() | ||
{ | ||
eve::wide<float> x( [](auto i, auto) { return 1.f+i; } ); | ||
std::cout << "x = " << x << "\n"; | ||
std::cout << "2*x = " << x + x << "\n"; | ||
std::cout << "x^0.5 = " << eve::sqrt(x) << "\n"; | ||
|
||
return 0; | ||
} |