Skip to content

Commit

Permalink
add github actions to make
Browse files Browse the repository at this point in the history
  • Loading branch information
rayxke authored Aug 22, 2024
1 parent fbbb81f commit 756191f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,15 @@ target_link_libraries(VocalSynth
juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags)

if ((DEFINED ENV{CI}))
set (env_file "${PROJECT_SOURCE_DIR}/.env")
message ("Writing ENV file for CI: ${env_file}")

# the first call truncates, the rest append
file(WRITE "${env_file}" "PROJECT_NAME=${PROJECT_NAME}\n")
file(APPEND "${env_file}" "PRODUCT_NAME=${PRODUCT_NAME}\n")
file(APPEND "${env_file}" "VERSION=${CURRENT_VERSION}\n")
file(APPEND "${env_file}" "BUNDLE_ID=${BUNDLE_ID}\n")
file(APPEND "${env_file}" "COMPANY_NAME=${COMPANY_NAME}\n")
endif ()

0 comments on commit 756191f

Please sign in to comment.