-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: k-matsuzawa <[email protected]>
- Loading branch information
1 parent
3771005
commit 67f13c4
Showing
27 changed files
with
1,653 additions
and
724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ on: | |
- test_ci | ||
|
||
env: | ||
CMAKE_VERSION: 3.15.5 | ||
CMAKE_BUILD_PARALLEL_LEVEL: 4 | ||
|
||
jobs: | ||
|
@@ -21,28 +20,19 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
node: [8, 12, 13, 14] | ||
os: [macos-latest, ubuntu-latest] | ||
node: [8, 12, 14] | ||
exclude: | ||
- os: windows-latest | ||
node: 8 | ||
- os: macos-latest | ||
node: 8 | ||
- os: macos-latest | ||
node: 13 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected].0 | ||
- uses: actions/[email protected].1 | ||
continue-on-error: true | ||
timeout-minutes: 1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: setup-node retry | ||
uses: actions/[email protected] | ||
timeout-minutes: 1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: dump node version | ||
id: node_ver | ||
run: | | ||
|
@@ -62,13 +52,13 @@ jobs: | |
id: npm_info | ||
run: | | ||
npm --version | ||
echo "::set-output name=npm_cachedir::$(npm config get cache)" | ||
echo "::set-output name=temp_npm_cachedir::$(npm config get cache)" | ||
- name: use npm cache | ||
if: matrix.os != 'windows-latest' && steps.node_cache.outputs.cache-hit != 'true' | ||
uses: actions/cache@v1 | ||
id: npm_cache | ||
with: | ||
path: ${{ steps.npm_info.outputs.npm_cachedir }} | ||
path: ${{ steps.npm_info.outputs.temp_npm_cachedir }} | ||
key: npm-${{ runner.os }}-${{ matrix.node }}-${{ steps.node_ver.outputs.node_version }}-0 | ||
restore-keys: | | ||
npm-${{ runner.os }}-${{ matrix.node }}-${{ steps.node_ver.outputs.node_version }}- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ on: | |
- master | ||
|
||
env: | ||
CMAKE_VERSION: 3.15.5 | ||
CMAKE_BUILD_PARALLEL_LEVEL: 4 | ||
|
||
jobs: | ||
|
@@ -19,28 +18,19 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
node: [8, 12, 13, 14] | ||
os: [macos-latest, ubuntu-latest] | ||
node: [8, 12, 14] | ||
exclude: | ||
- os: windows-latest | ||
node: 8 | ||
- os: macos-latest | ||
node: 8 | ||
- os: macos-latest | ||
node: 13 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected].0 | ||
- uses: actions/[email protected].1 | ||
continue-on-error: true | ||
timeout-minutes: 1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: setup-node retry | ||
uses: actions/[email protected] | ||
timeout-minutes: 1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: dump node version | ||
id: node_ver | ||
run: | | ||
|
@@ -60,13 +50,13 @@ jobs: | |
id: npm_info | ||
run: | | ||
npm --version | ||
echo "::set-output name=npm_cachedir::$(npm config get cache)" | ||
echo "::set-output name=temp_npm_cachedir::$(npm config get cache)" | ||
- name: use npm cache | ||
if: matrix.os != 'windows-latest' && steps.node_cache.outputs.cache-hit != 'true' | ||
uses: actions/cache@v1 | ||
id: npm_cache | ||
with: | ||
path: ${{ steps.npm_info.outputs.npm_cachedir }} | ||
path: ${{ steps.npm_info.outputs.temp_npm_cachedir }} | ||
key: npm-${{ runner.os }}-${{ matrix.node }}-${{ steps.node_ver.outputs.node_version }}-0 | ||
restore-keys: | | ||
npm-${{ runner.os }}-${{ matrix.node }}-${{ steps.node_ver.outputs.node_version }}- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ on: | |
- features/sprint* | ||
|
||
env: | ||
CMAKE_VERSION: 3.15.5 | ||
CMAKE_BUILD_PARALLEL_LEVEL: 4 | ||
|
||
jobs: | ||
|
@@ -19,28 +18,22 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
# os: [macos-latest, windows-latest, ubuntu-latest] | ||
os: [macos-latest, ubuntu-latest] | ||
node: [8, 12, 14] | ||
exclude: | ||
- os: windows-latest | ||
node: 8 | ||
- os: macos-latest | ||
node: 8 | ||
- os: macos-latest | ||
node: 14 | ||
node: 12 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected].0 | ||
- uses: actions/[email protected].1 | ||
continue-on-error: true | ||
timeout-minutes: 1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: setup-node retry | ||
uses: actions/[email protected] | ||
timeout-minutes: 1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: dump node version | ||
id: node_ver | ||
run: | | ||
|
@@ -60,13 +53,13 @@ jobs: | |
id: npm_info | ||
run: | | ||
npm --version | ||
echo "::set-output name=npm_cachedir::$(npm config get cache)" | ||
echo "::set-output name=temp_npm_cachedir::$(npm config get cache)" | ||
- name: use npm cache | ||
if: matrix.os != 'windows-latest' && steps.node_cache.outputs.cache-hit != 'true' | ||
uses: actions/cache@v1 | ||
id: npm_cache | ||
with: | ||
path: ${{ steps.npm_info.outputs.npm_cachedir }} | ||
path: ${{ steps.npm_info.outputs.temp_npm_cachedir }} | ||
key: npm-${{ runner.os }}-${{ matrix.node }}-${{ steps.node_ver.outputs.node_version }}-0 | ||
restore-keys: | | ||
npm-${{ runner.os }}-${{ matrix.node }}-${{ steps.node_ver.outputs.node_version }}- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,10 @@ set(CFDJS_API_INSTALLED TRUE) | |
endif() # find_package | ||
endif() | ||
|
||
find_package(cfd QUIET CONFIG) | ||
find_package(univalue QUIET CONFIG) | ||
find_package(wally QUIET CONFIG) | ||
find_package(cfdcore QUIET CONFIG) | ||
find_package(cfd QUIET CONFIG) | ||
if((NOT CFDJS_API_INSTALLED) OR (NOT cfd_FOUND) OR (NOT ${cfd_FOUND}) OR (NOT cfdcore_FOUND) OR (NOT ${cfdcore_FOUND})) | ||
# load and compile libwally | ||
else() | ||
|
@@ -64,31 +66,24 @@ include(${CMAKE_CURRENT_BINARY_DIR}/${EXTERNAL_LOCAL_CURRENT_FILENAME}.cmake) | |
message(STATUS "[external project local] load current cfd-js file") | ||
endif() | ||
|
||
if(NOT CFDJS_API_INSTALLED) | ||
|
||
# cfd | ||
if(CFD_TARGET_VERSION) | ||
set(CFD_TARGET_TAG ${CFD_TARGET_VERSION}) | ||
message(STATUS "[external project local] cfd target=${CFD_TARGET_VERSION}") | ||
else() | ||
set(CFD_TARGET_TAG v0.1.5) | ||
endif() | ||
if(CFD_TARGET_URL) | ||
set(CFD_TARGET_REP ${CFD_TARGET_URL}) | ||
message(STATUS "[external project local] cfd url=${CFD_TARGET_URL}") | ||
# libwally-core (force build on wallycore.node) | ||
if(LIBWALLY_TARGET_VERSION) | ||
set(LIBWALLY_TARGET_TAG ${LIBWALLY_TARGET_VERSION}) | ||
message(STATUS "[external project cfd-js local] libwally-core target=${LIBWALLY_TARGET_VERSION}") | ||
else() | ||
set(CFD_TARGET_REP p2pderivatives/cfd.git) | ||
set(LIBWALLY_TARGET_TAG refs/tags/cfd-0.0.6) | ||
endif() | ||
|
||
if(${USE_GIT_SSH}) | ||
set(CFD_URL [email protected]:${CFD_TARGET_REP}) | ||
set(LIBWALLY_URL [email protected]:cryptogarageinc/libwally-core.git) | ||
else() | ||
set(CFD_URL https://github.com/${CFD_TARGET_REP}) | ||
set(LIBWALLY_URL https://github.com/cryptogarageinc/libwally-core.git) | ||
endif() | ||
|
||
set(TEMPLATE_PROJECT_NAME cfd) | ||
set(TEMPLATE_PROJECT_GIT_REPOSITORY ${CFD_URL}) | ||
set(TEMPLATE_PROJECT_GIT_TAG ${CFD_TARGET_TAG}) | ||
set(TEMPLATE_PROJECT_NAME libwally-core) | ||
set(TEMPLATE_PROJECT_GIT_REPOSITORY ${LIBWALLY_URL}) | ||
set(TEMPLATE_PROJECT_GIT_TAG ${LIBWALLY_TARGET_TAG}) | ||
set(PROJECT_EXTERNAL "${CMAKE_SOURCE_DIR}/external/${TEMPLATE_PROJECT_NAME}/external") | ||
set(DIR_PATH "${CFD_ROOT_BINARY_DIR}/${TEMPLATE_PROJECT_NAME}") | ||
set(DL_PATH "${CFD_ROOT_BINARY_DIR}/external/${TEMPLATE_PROJECT_NAME}/download") | ||
|
@@ -97,6 +92,7 @@ get_property(PROP_VALUE GLOBAL PROPERTY ${TEMPLATE_PROJECT_NAME}) | |
if(PROP_VALUE) | ||
message(STATUS "[exist directory] ${TEMPLATE_PROJECT_NAME} exist") | ||
else() | ||
message(STATUS "[external project cfd-js] libwally-core target=${LIBWALLY_TARGET_TAG}") | ||
configure_file(template_CMakeLists.txt.in ${DL_PATH}/CMakeLists.txt) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" -S . -B ${DL_PATH} | ||
RESULT_VARIABLE result | ||
|
@@ -117,36 +113,37 @@ if(EXISTS ${PROJECT_EXTERNAL}) | |
${CFD_ROOT_BINARY_DIR}/external/${TEMPLATE_PROJECT_NAME}/external) | ||
endif() | ||
|
||
if((NOT cfd_FOUND) OR (NOT ${cfd_FOUND})) | ||
add_subdirectory(${CMAKE_SOURCE_DIR}/external/${TEMPLATE_PROJECT_NAME} | ||
${DIR_PATH}/build) | ||
else() | ||
message(STATUS "[external project local] use cfd cache") | ||
endif((NOT cfd_FOUND) OR (NOT ${cfd_FOUND})) | ||
|
||
set_property(GLOBAL PROPERTY ${TEMPLATE_PROJECT_NAME} 1) | ||
endif() | ||
|
||
endif(NOT CFDJS_API_INSTALLED) | ||
|
||
if(NOT CFDJS_API_INSTALLED) | ||
|
||
# libwally-core (force build on wallycore.node) | ||
if(LIBWALLY_TARGET_VERSION) | ||
set(LIBWALLY_TARGET_TAG ${LIBWALLY_TARGET_VERSION}) | ||
message(STATUS "[external project cfd-js local] libwally-core target=${LIBWALLY_TARGET_VERSION}") | ||
# cfd | ||
if(CFD_TARGET_VERSION) | ||
set(CFD_TARGET_TAG ${CFD_TARGET_VERSION}) | ||
message(STATUS "[external project local] cfd target=${CFD_TARGET_VERSION}") | ||
else() | ||
set(CFD_TARGET_TAG v0.1.6) | ||
endif() | ||
if(CFD_TARGET_URL) | ||
set(CFD_TARGET_REP ${CFD_TARGET_URL}) | ||
message(STATUS "[external project local] cfd url=${CFD_TARGET_URL}") | ||
else() | ||
set(LIBWALLY_TARGET_TAG refs/tags/cfd-0.0.4) | ||
set(CFD_TARGET_REP p2pderivatives/cfd.git) | ||
endif() | ||
|
||
if(${USE_GIT_SSH}) | ||
set(LIBWALLY_URL [email protected]:cryptogarageinc/libwally-core.git) | ||
set(CFD_URL [email protected]:${CFD_TARGET_REP}) | ||
else() | ||
set(LIBWALLY_URL https://github.com/cryptogarageinc/libwally-core.git) | ||
set(CFD_URL https://github.com/${CFD_TARGET_REP}) | ||
endif() | ||
|
||
set(TEMPLATE_PROJECT_NAME libwally-core) | ||
set(TEMPLATE_PROJECT_GIT_REPOSITORY ${LIBWALLY_URL}) | ||
set(TEMPLATE_PROJECT_GIT_TAG ${LIBWALLY_TARGET_TAG}) | ||
set(TEMPLATE_PROJECT_NAME cfd) | ||
set(TEMPLATE_PROJECT_GIT_REPOSITORY ${CFD_URL}) | ||
set(TEMPLATE_PROJECT_GIT_TAG ${CFD_TARGET_TAG}) | ||
set(PROJECT_EXTERNAL "${CMAKE_SOURCE_DIR}/external/${TEMPLATE_PROJECT_NAME}/external") | ||
set(DIR_PATH "${CFD_ROOT_BINARY_DIR}/${TEMPLATE_PROJECT_NAME}") | ||
set(DL_PATH "${CFD_ROOT_BINARY_DIR}/external/${TEMPLATE_PROJECT_NAME}/download") | ||
|
@@ -155,7 +152,6 @@ get_property(PROP_VALUE GLOBAL PROPERTY ${TEMPLATE_PROJECT_NAME}) | |
if(PROP_VALUE) | ||
message(STATUS "[exist directory] ${TEMPLATE_PROJECT_NAME} exist") | ||
else() | ||
message(STATUS "[external project cfd-js] libwally-core target=${LIBWALLY_TARGET_TAG}") | ||
configure_file(template_CMakeLists.txt.in ${DL_PATH}/CMakeLists.txt) | ||
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" -S . -B ${DL_PATH} | ||
RESULT_VARIABLE result | ||
|
@@ -176,8 +172,14 @@ if(EXISTS ${PROJECT_EXTERNAL}) | |
${CFD_ROOT_BINARY_DIR}/external/${TEMPLATE_PROJECT_NAME}/external) | ||
endif() | ||
|
||
if((NOT cfd_FOUND) OR (NOT ${cfd_FOUND})) | ||
add_subdirectory(${CMAKE_SOURCE_DIR}/external/${TEMPLATE_PROJECT_NAME} | ||
${DIR_PATH}/build) | ||
else() | ||
message(STATUS "[external project local] use cfd cache") | ||
endif((NOT cfd_FOUND) OR (NOT ${cfd_FOUND})) | ||
|
||
set_property(GLOBAL PROPERTY ${TEMPLATE_PROJECT_NAME} 1) | ||
endif() | ||
|
||
endif(NOT CFDJS_API_INSTALLED) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.