Skip to content

Commit

Permalink
19462: Adds docs folder to install with new version.json file (#84)
Browse files Browse the repository at this point in the history
Also fixes action depends bug in mac large runner on GitHub.
  • Loading branch information
calebwherry authored Feb 28, 2024
1 parent fb3f2af commit 5ca006b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ jobs:
- smoke-test-linux-arm64
- smoke-test-linux-arm64_8a
- smoke-test-macos-amd64
- smoke-test-macos-amd64-large
- smoke-test-macos-amd64-on-arm64
- smoke-test-macos-arm64
- smoke-test-windows-amd64
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,4 @@ endif()

include(create_tests)
include(create_package)
include(install_docs)
14 changes: 14 additions & 0 deletions build/cmake/install_docs.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Install docs
#

# Install language reference:
install(
FILES
"${CMAKE_SOURCE_DIR}/docs/index.html"
"${CMAKE_SOURCE_DIR}/docs/language.js"
DESTINATION "docs/language_reference"
)

# Install version.json:
install(FILES "${CMAKE_BINARY_DIR}/version.json" DESTINATION "docs")
3 changes: 3 additions & 0 deletions build/cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,6 @@ configure_file(
NEWLINE_STYLE ${NEWLINE_STYLE}
@ONLY
)

# Write version.json:
file(WRITE "${CMAKE_BINARY_DIR}/version.json" "{\n \"version\": \"${AMALGAM_VERSION_FULL}\"\n}")

0 comments on commit 5ca006b

Please sign in to comment.