Skip to content

Commit cea4949

Browse files
committed
Add CI package for aurora-au
I tried copying the patterns I saw in the `vcpkg-ci-blas` folder, but I have no idea how to actually run the tests.
1 parent 21f280f commit cea4949

5 files changed

Lines changed: 49 additions & 0 deletions

File tree

scripts/ci.baseline.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,7 @@ vcpkg-ci-arrow:x64-windows-static=pass
12371237
vcpkg-ci-arrow:x64-windows-static-md=pass
12381238
vcpkg-ci-arrow:x64-osx=pass
12391239
vcpkg-ci-arrow:x64-linux=pass
1240+
vcpkg-ci-aurora-au:x64-linux=pass
12401241
vcpkg-ci-boost:arm-neon-android=pass
12411242
vcpkg-ci-boost:arm64-android=pass
12421243
vcpkg-ci-boost:arm64-uwp=pass
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
2+
3+
vcpkg_find_acquire_program(PKGCONFIG)
4+
5+
vcpkg_cmake_configure(
6+
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
7+
OPTIONS
8+
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
9+
)
10+
vcpkg_cmake_build()
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cmake_minimum_required(VERSION 3.29)
2+
3+
project(vcpkg-ci-aurora-au LANGUAGES CXX)
4+
5+
find_package(Au CONFIG REQUIRED)
6+
7+
add_executable(test_au_client test_au_client.cc)
8+
target_link_libraries(test_au_client PRIVATE Au::au)
9+
target_compile_features(test_au_client PRIVATE cxx_std_14)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <iostream>
2+
3+
#include "au/au.hh"
4+
#include "au/constants/speed_of_light.hh"
5+
#include "au/io.hh"
6+
#include "au/units/meters.hh"
7+
#include "au/units/seconds.hh"
8+
9+
using ::au::SPEED_OF_LIGHT;
10+
using ::au::symbols::m;
11+
using ::au::symbols::s;
12+
13+
int main(int argc, char **argv) {
14+
std::cout << "Speed of light in m/s: " << SPEED_OF_LIGHT.as<int>(m / s)
15+
<< std::endl;
16+
return 0;
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "vcpkg-ci-aurora-au",
3+
"version-string": "ci",
4+
"description": "Validates aurora-au",
5+
"dependencies": [
6+
"aurora-au",
7+
{
8+
"name": "vcpkg-cmake",
9+
"host": true
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)