Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/vcpkg-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

name: vcpkg registry release
on:
release:
types: [published]
jobs:
vcpkg-release:
uses: ednolan/infra-workflows/.github/workflows/reusable-beman-vcpkg-release.yml@ednolan/vcpkg-release-workflow
with:
port_name: beman-transform-view
registry_repo: ednolan/vcpkg-registry
secrets:
VCPKG_REGISTRY_TOKEN: ${{ secrets.VCPKG_REGISTRY_TOKEN }}
28 changes: 28 additions & 0 deletions port/portfile.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO bemanproject/transform_view
REF "v@VERSION@"
SHA512 @SHA512@
HEAD_REF main
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBEMAN_TRANSFORM_VIEW_BUILD_TESTS=OFF
-DBEMAN_TRANSFORM_VIEW_BUILD_EXAMPLES=OFF
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(
PACKAGE_NAME beman.transform_view
CONFIG_PATH lib/cmake/beman.transform_view
)

file(REMOVE_RECURSE
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pre-commit] reported by reviewdog 🐶

Suggested change
file(REMOVE_RECURSE
file(
REMOVE_RECURSE

"${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib"
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
17 changes: 17 additions & 0 deletions port/vcpkg.json.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "beman-transform-view",
"version-semver": "@VERSION@",
"description": "A conditionally borrowed std::ranges::transform_view",
"homepage": "https://github.com/bemanproject/transform_view",
"license": "Apache-2.0 WITH LLVM-exception",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
Loading