Skip to content

Commit

Permalink
test: ci (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
ko-matsu authored Sep 13, 2024
1 parent 607ab89 commit 3cc569e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 26 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/check_pre-merge_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, windows-2019, ubuntu-20.04]
node: [16, 18, 19, 20]
os: [macos-13, windows-2022, ubuntu-22.04]
node: [20, 22]
exclude:
- os: macos-11
node: 14
- os: macos-11
node: 19
- os: macos-13
node: 20
- os: macos-13
node: 20

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
timeout-minutes: 2
with:
node-version: ${{ matrix.node }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/check_pre-merge_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:

env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
GITHUB_ELEMENTS_VERSION: v0.1.0
GITHUB_BITCOIN_VERSION: v0.1.0
GITHUB_ELEMENTS_VERSION: v0.2.3
GITHUB_BITCOIN_VERSION: v0.2.3
GITHUB_DOCKER_IMAGE: ghcr.io/cryptogarageinc/elements-testing
ELEMENTS_ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_entrypoint.sh
BITCOIN_ENTRYPOINT_PATH: /github/workspace/.github/workflows/docker/test_bitcoin_entrypoint.sh
Expand All @@ -25,17 +25,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, windows-2019, ubuntu-20.04]
node: [16, 18, 19, 20]
os: [macos-13, windows-2022, ubuntu-22.04]
node: [20, 22]
exclude:
- os: macos-11
node: 14
- os: macos-11
node: 19
- os: macos-13
node: 20
- os: macos-13
node: 20

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
timeout-minutes: 2
with:
node-version: ${{ matrix.node }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/check_pre-merge_sprint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, windows-2019, ubuntu-20.04]
node: [16, 18, 19, 20]
os: [macos-13, windows-2022, ubuntu-22.04]
node: [20, 22]
exclude:
- os: macos-11
node: 14
- os: macos-11
node: 19
- os: macos-13
node: 20
- os: macos-13
node: 20

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
timeout-minutes: 2
with:
node-version: ${{ matrix.node }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker/test_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ do
elements-cli -chain=liquidregtest -datadir=${WORKDIR_PATH}/elementsd_datadir ping > /dev/null 2>&1
done
echo "start elements node"
elements-cli -chain=liquidregtest -datadir=${WORKDIR_PATH}/elementsd_datadir createwallet wallet

bitcoin-cli --regtest -datadir=${WORKDIR_PATH}/bitcoind_datadir createwallet wallet false false "" false false
elements-cli -chain=liquidregtest -datadir=${WORKDIR_PATH}/elementsd_datadir createwallet wallet false false "" false false

set -e

Expand Down
6 changes: 6 additions & 0 deletions addon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ if(NOT CFD_SRC_ROOT_DIR)
set(CFD_SRC_ROOT_DIR ${CMAKE_SOURCE_DIR})
endif()

# for cmake-js 7.0.0
if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
# Generate node.lib
execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
endif()

# cfd-js
project(cfd_js CXX)
set(CMAKE_CXX_STANDARD 11)
Expand Down

0 comments on commit 3cc569e

Please sign in to comment.