node-datachannel 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,7 @@ jobs:
25
25
  libc: musl
26
26
  gcc_install: clang lld
27
27
  gcc: clang
28
+ gxx: clang++
28
29
  # libc is intentionally not set here, as prebuild-install requires libc to not be set for glibc builds
29
30
  - triple: "linux-gnu"
30
31
  platform: debian
@@ -43,15 +44,17 @@ jobs:
43
44
  arch: arm64
44
45
  flags: -march=armv8-a -fPIC
45
46
  # Set edge case overrides for specific platform + architecture
46
- # also define gcc commands for each architecture
47
+ # also define gcc commands for each architecture
47
48
  - arch: amd64
48
49
  platform: debian
49
50
  gcc_install: gcc g++
50
51
  gcc: gcc
52
+ gxx: g++
51
53
  - arch: arm64
52
54
  platform: debian
53
55
  gcc_install: gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
54
56
  gcc: aarch64-linux-gnu-gcc
57
+ gxx: aarch64-linux-gnu-g++
55
58
  # debian uses the triple `arm-linux-gnueabihf` instead of alpine's `armv7-alpine-linux-musleabihf`
56
59
  # because of this, we explicitly override triple_arch for debian arm
57
60
  - triple_arch: arm
@@ -59,6 +62,7 @@ jobs:
59
62
  platform: debian
60
63
  gcc_install: gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
61
64
  gcc: arm-linux-gnueabihf-gcc
65
+ gxx: arm-linux-gnueabihf-g++
62
66
 
63
67
  steps:
64
68
  - uses: actions/checkout@v4
@@ -87,13 +91,14 @@ jobs:
87
91
  id: sysroot
88
92
  run: echo "sysroot=$(sudo podman image mount ndc-buildroot:${{ matrix.platform }}-${{ matrix.arch }})" >> $GITHUB_OUTPUT
89
93
  - name: Build
90
- run: sudo --preserve-env=SYSROOT,TRIPLE,COMPILER_FLAGS,LIBC,GCC,CI,PATH node_modules/.bin/prebuild --arch ${{ matrix.node_arch }} -r napi --backend cmake-js -- --CDCMAKE_TOOLCHAIN_FILE:FILEPATH=./cmake/toolchain/ci.cmake
94
+ run: sudo --preserve-env=SYSROOT,TRIPLE,COMPILER_FLAGS,LIBC,GCC,GXX,CI,PATH node_modules/.bin/prebuild --arch ${{ matrix.node_arch }} -r napi --backend cmake-js -- --CDCMAKE_TOOLCHAIN_FILE:FILEPATH=./cmake/toolchain/ci.cmake
91
95
  env:
92
96
  SYSROOT: ${{ steps.sysroot.outputs.sysroot }}
93
97
  TRIPLE: ${{ matrix.triple_arch }}-${{ matrix.triple }}${{ matrix.triple_postfix }}
94
98
  COMPILER_FLAGS: ${{ matrix.flags }}
95
99
  LIBC: ${{ matrix.libc }}
96
100
  GCC: ${{ matrix.gcc }}
101
+ GXX: ${{ matrix.gxx }}
97
102
  CI: true
98
103
  - name: Test
99
104
  run: sudo podman run --rm -v $(pwd):/usr/app/ -e CI=true --platform linux/${{ matrix.arch }} -t ndc-buildroot:${{ matrix.platform }}-${{ matrix.arch }} npm run test
package/CMakeLists.txt CHANGED
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
2
2
  cmake_policy(SET CMP0091 NEW)
3
3
  cmake_policy(SET CMP0042 NEW)
4
4
 
5
- project(node_datachannel VERSION 0.11.0)
5
+ project(node_datachannel VERSION 0.12.0)
6
6
 
7
7
  # -Dnapi_build_version=8
8
8
  add_definitions(-DNAPI_VERSION=8)
@@ -3,7 +3,7 @@ set(triple $ENV{TRIPLE})
3
3
 
4
4
  # use clang and lld
5
5
  set(CMAKE_C_COMPILER $ENV{GCC})
6
- set(CMAKE_CXX_COMPILER $ENV{GCC})
6
+ set(CMAKE_CXX_COMPILER $ENV{GXX})
7
7
  if (CMAKE_C_COMPILER MATCHES clang)
8
8
  add_link_options("-fuse-ld=lld")
9
9
  endif()