Skip to content

Commit

Permalink
Add CI package for aurora-au
Browse files Browse the repository at this point in the history
I tried copying the patterns I saw in the `vcpkg-ci-blas` folder, but I
have no idea how to actually run the tests.
  • Loading branch information
chiphogg committed Dec 18, 2024
1 parent 21f280f commit cea4949
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ vcpkg-ci-arrow:x64-windows-static=pass
vcpkg-ci-arrow:x64-windows-static-md=pass
vcpkg-ci-arrow:x64-osx=pass
vcpkg-ci-arrow:x64-linux=pass
vcpkg-ci-aurora-au:x64-linux=pass
vcpkg-ci-boost:arm-neon-android=pass
vcpkg-ci-boost:arm64-android=pass
vcpkg-ci-boost:arm64-uwp=pass
Expand Down
10 changes: 10 additions & 0 deletions scripts/test_ports/vcpkg-ci-aurora-au/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)

vcpkg_find_acquire_program(PKGCONFIG)

vcpkg_cmake_configure(
SOURCE_PATH "${CURRENT_PORT_DIR}/project"
OPTIONS
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
)
vcpkg_cmake_build()
9 changes: 9 additions & 0 deletions scripts/test_ports/vcpkg-ci-aurora-au/project/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.29)

project(vcpkg-ci-aurora-au LANGUAGES CXX)

find_package(Au CONFIG REQUIRED)

add_executable(test_au_client test_au_client.cc)
target_link_libraries(test_au_client PRIVATE Au::au)
target_compile_features(test_au_client PRIVATE cxx_std_14)
17 changes: 17 additions & 0 deletions scripts/test_ports/vcpkg-ci-aurora-au/project/test_au_client.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>

#include "au/au.hh"
#include "au/constants/speed_of_light.hh"
#include "au/io.hh"
#include "au/units/meters.hh"
#include "au/units/seconds.hh"

using ::au::SPEED_OF_LIGHT;
using ::au::symbols::m;
using ::au::symbols::s;

int main(int argc, char **argv) {
std::cout << "Speed of light in m/s: " << SPEED_OF_LIGHT.as<int>(m / s)
<< std::endl;
return 0;
}
12 changes: 12 additions & 0 deletions scripts/test_ports/vcpkg-ci-aurora-au/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "vcpkg-ci-aurora-au",
"version-string": "ci",
"description": "Validates aurora-au",
"dependencies": [
"aurora-au",
{
"name": "vcpkg-cmake",
"host": true
}
]
}

0 comments on commit cea4949

Please sign in to comment.