dsh-remote 0.8.50 → 0.8.52

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.
Files changed (136) hide show
  1. package/README.en.md +8 -0
  2. package/README.md +22 -0
  3. package/lib/client.js +15 -3
  4. package/lib/index.js +269 -8
  5. package/lib/instructions.js +288 -0
  6. package/lib/openssh.js +10 -1
  7. package/lib/pool.js +29 -1
  8. package/lib/remote-fs.js +26 -1
  9. package/lib/sftp-surface.js +46 -3
  10. package/lib/sshconfig.js +13 -3
  11. package/node_modules/buildcheck/.eslintrc.js +5 -0
  12. package/node_modules/buildcheck/.github/workflows/ci.yml +88 -0
  13. package/node_modules/buildcheck/.github/workflows/lint.yml +27 -0
  14. package/node_modules/buildcheck/.npmignore +3 -0
  15. package/node_modules/buildcheck/LICENSE +19 -0
  16. package/node_modules/buildcheck/README.md +106 -0
  17. package/node_modules/buildcheck/deps/Find-VisualStudio.cs +250 -0
  18. package/node_modules/buildcheck/lib/findvs.js +361 -0
  19. package/node_modules/buildcheck/lib/index.js +738 -0
  20. package/node_modules/buildcheck/package.json +36 -0
  21. package/node_modules/buildcheck/test/test.js +8 -0
  22. package/node_modules/cpu-features/.eslintrc.js +5 -0
  23. package/node_modules/cpu-features/.github/workflows/ci.yml +74 -0
  24. package/node_modules/cpu-features/.github/workflows/lint.yml +27 -0
  25. package/node_modules/cpu-features/LICENSE +19 -0
  26. package/node_modules/cpu-features/README.md +59 -0
  27. package/node_modules/cpu-features/binding.gyp +16 -0
  28. package/node_modules/cpu-features/buildcheck.js +32 -0
  29. package/node_modules/cpu-features/deps/cpu_features/.clang-format +4 -0
  30. package/node_modules/cpu-features/deps/cpu_features/.dockerignore +31 -0
  31. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +5 -0
  32. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +30 -0
  33. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +22 -0
  34. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +26 -0
  35. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +31 -0
  36. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +43 -0
  37. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +25 -0
  38. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +31 -0
  39. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +24 -0
  40. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +30 -0
  41. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +29 -0
  42. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +28 -0
  43. package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +27 -0
  44. package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +21 -0
  45. package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +329 -0
  46. package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +261 -0
  47. package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +23 -0
  48. package/node_modules/cpu-features/deps/cpu_features/LICENSE +230 -0
  49. package/node_modules/cpu-features/deps/cpu_features/README.md +272 -0
  50. package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +19 -0
  51. package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +5 -0
  52. package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +11 -0
  53. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +3 -0
  54. package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +3 -0
  55. package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +30 -0
  56. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +252 -0
  57. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +40 -0
  58. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +64 -0
  59. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +312 -0
  60. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +7 -0
  61. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +48 -0
  62. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +34 -0
  63. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +22 -0
  64. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +11 -0
  65. package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +107 -0
  66. package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +15 -0
  67. package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +105 -0
  68. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +54 -0
  69. package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +384 -0
  70. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +259 -0
  71. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +121 -0
  72. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +74 -0
  73. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +149 -0
  74. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +72 -0
  75. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +108 -0
  76. package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +288 -0
  77. package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +40 -0
  78. package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +37 -0
  79. package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +39 -0
  80. package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +240 -0
  81. package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +49 -0
  82. package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +110 -0
  83. package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +70 -0
  84. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +60 -0
  85. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +4 -0
  86. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +205 -0
  87. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +320 -0
  88. package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +12 -0
  89. package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +456 -0
  90. package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +165 -0
  91. package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +75 -0
  92. package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +490 -0
  93. package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +79 -0
  94. package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +19 -0
  95. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +86 -0
  96. package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +26 -0
  97. package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +22 -0
  98. package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +62 -0
  99. package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +169 -0
  100. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +88 -0
  101. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +79 -0
  102. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +82 -0
  103. package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +138 -0
  104. package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +212 -0
  105. package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +93 -0
  106. package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +163 -0
  107. package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +111 -0
  108. package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +120 -0
  109. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +2055 -0
  110. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +68 -0
  111. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +58 -0
  112. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +57 -0
  113. package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +58 -0
  114. package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +132 -0
  115. package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +192 -0
  116. package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +461 -0
  117. package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +114 -0
  118. package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +53 -0
  119. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +396 -0
  120. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +384 -0
  121. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +176 -0
  122. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +131 -0
  123. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +180 -0
  124. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +82 -0
  125. package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +1729 -0
  126. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +103 -0
  127. package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +61 -0
  128. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +52 -0
  129. package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +31 -0
  130. package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +132 -0
  131. package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +202 -0
  132. package/node_modules/cpu-features/lib/index.js +5 -0
  133. package/node_modules/cpu-features/package.json +40 -0
  134. package/node_modules/cpu-features/src/binding.cc +151 -0
  135. package/node_modules/cpu-features/test/test.js +12 -0
  136. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "buildcheck",
3
+ "version": "0.0.7",
4
+ "author": "Brian White <mscdex@mscdex.net>",
5
+ "description": "Build environment checking (a la autoconf) for node.js",
6
+ "main": "./lib/index.js",
7
+ "engines": {
8
+ "node": ">=10.0.0"
9
+ },
10
+ "devDependencies": {
11
+ "@mscdex/eslint-config": "^1.1.0",
12
+ "eslint": "^7.0.0"
13
+ },
14
+ "scripts": {
15
+ "test": "node test/test.js",
16
+ "lint": "eslint --cache --report-unused-disable-directives --ext=.js .eslintrc.js lib",
17
+ "lint:fix": "npm run lint -- --fix"
18
+ },
19
+ "keywords": [
20
+ "build",
21
+ "autoconf",
22
+ "addons",
23
+ "compiler",
24
+ "environment"
25
+ ],
26
+ "licenses": [
27
+ {
28
+ "type": "MIT",
29
+ "url": "http://github.com/mscdex/buildcheck/raw/master/LICENSE"
30
+ }
31
+ ],
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "http://github.com/mscdex/buildcheck.git"
35
+ }
36
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ const BE = require('..');
4
+
5
+ {
6
+ // Test compiler detection
7
+ new BE({ debug: console.log });
8
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ extends: '@mscdex/eslint-config',
5
+ };
@@ -0,0 +1,74 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [ master ]
7
+
8
+ jobs:
9
+ tests-linux:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ persist-credentials: false
19
+ - name: Use Node.js ${{ matrix.node-version }}
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: ${{ matrix.node-version }}
23
+ - name: Check Node.js version
24
+ run: node -pe process.versions
25
+ - name: Install module
26
+ run: npm install
27
+ - name: Run tests
28
+ run: npm test
29
+ tests-macos:
30
+ runs-on: macos-latest
31
+ strategy:
32
+ fail-fast: false
33
+ matrix:
34
+ node-version: [16.x, 18.x, 20.x, 22.x]
35
+ env:
36
+ PIP_DISABLE_PIP_VERSION_CHECK: 1
37
+ steps:
38
+ - uses: actions/checkout@v4
39
+ with:
40
+ persist-credentials: false
41
+ - name: Use Node.js ${{ matrix.node-version }}
42
+ uses: actions/setup-node@v4
43
+ with:
44
+ node-version: ${{ matrix.node-version }}
45
+ - name: Install Python 3.10
46
+ uses: actions/setup-python@v5
47
+ with:
48
+ python-version: '3.10'
49
+ - name: Check Node.js version
50
+ run: node -pe process.versions
51
+ - name: Install module
52
+ run: npm install
53
+ - name: Run tests
54
+ run: npm test
55
+ tests-windows:
56
+ runs-on: windows-2019
57
+ strategy:
58
+ fail-fast: false
59
+ matrix:
60
+ node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+ with:
64
+ persist-credentials: false
65
+ - name: Use Node.js ${{ matrix.node-version }}
66
+ uses: actions/setup-node@v4
67
+ with:
68
+ node-version: ${{ matrix.node-version }}
69
+ - name: Check Node.js version
70
+ run: node -pe process.versions
71
+ - name: Install module
72
+ run: npm install
73
+ - name: Run tests
74
+ run: npm test
@@ -0,0 +1,27 @@
1
+ name: lint
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [ master ]
7
+
8
+ env:
9
+ NODE_VERSION: 20.x
10
+
11
+ jobs:
12
+ lint-js:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ persist-credentials: false
18
+ - name: Use Node.js ${{ env.NODE_VERSION }}
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version: ${{ env.NODE_VERSION }}
22
+ - name: Check Node.js version
23
+ run: node -pe process.versions
24
+ - name: Install ESLint + ESLint configs/plugins
25
+ run: npm install
26
+ - name: Lint files
27
+ run: npm run lint
@@ -0,0 +1,19 @@
1
+ Copyright Brian White. All rights reserved.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to
5
+ deal in the Software without restriction, including without limitation the
6
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
+ sell copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
+ IN THE SOFTWARE.
@@ -0,0 +1,59 @@
1
+
2
+ Description
3
+ ===========
4
+
5
+ A simple [node.js](https://nodejs.org) binding to [cpu_features](https://github.com/google/cpu_features) for obtaining information about installed CPU(s).
6
+
7
+
8
+ Requirements
9
+ ============
10
+
11
+ * [node.js](http://nodejs.org/) -- v10.0.0 or newer
12
+ * An appropriate build environment -- see [node-gyp's documentation](https://github.com/nodejs/node-gyp/blob/master/README.md)
13
+
14
+
15
+ Install
16
+ =======
17
+
18
+ npm install cpu-features
19
+
20
+
21
+ Example
22
+ =======
23
+
24
+ ```js
25
+ // Generally it's a good idea to just call this once and
26
+ // reuse the result since `cpu-features` does not cache
27
+ // the result itself.
28
+ const features = require('cpu-features')();
29
+
30
+ console.log(features);
31
+ // example output:
32
+ // { arch: 'x86',
33
+ // brand: 'Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz',
34
+ // family: 6,
35
+ // model: 58,
36
+ // stepping: 9,
37
+ // uarch: 'INTEL_IVB',
38
+ // flags:
39
+ // { fpu: true,
40
+ // tsc: true,
41
+ // cx8: true,
42
+ // clfsh: true,
43
+ // mmx: true,
44
+ // aes: true,
45
+ // erms: true,
46
+ // f16c: true,
47
+ // sse: true,
48
+ // sse2: true,
49
+ // sse3: true,
50
+ // ssse3: true,
51
+ // sse4_1: true,
52
+ // sse4_2: true,
53
+ // avx: true,
54
+ // pclmulqdq: true,
55
+ // cx16: true,
56
+ // popcnt: true,
57
+ // rdrnd: true,
58
+ // ss: true } }
59
+ ```
@@ -0,0 +1,16 @@
1
+ {
2
+ 'targets': [
3
+ {
4
+ 'target_name': 'cpufeatures',
5
+ 'dependencies': [ 'deps/cpu_features/cpu_features.gyp:cpu_features' ],
6
+ 'include_dirs': [
7
+ 'src',
8
+ "<!(node -e \"require('nan')\")",
9
+ ],
10
+ 'sources': [
11
+ 'src/binding.cc'
12
+ ],
13
+ 'cflags': [ '-O3' ],
14
+ },
15
+ ],
16
+ }
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ const BuildEnvironment = require('buildcheck');
4
+
5
+ const be = new BuildEnvironment();
6
+
7
+ let gyp = {
8
+ defines: [],
9
+ libraries: [],
10
+ sources: [
11
+ 'deps/cpu_features/include/internal/hwcaps.h',
12
+ 'deps/cpu_features/src/hwcaps.c',
13
+ ],
14
+ };
15
+
16
+ be.checkHeader('c', 'dlfcn.h');
17
+
18
+ if (be.checkDeclared('c', 'getauxval', { headers: ['sys/auxv.h'] }))
19
+ gyp.defines.push('HAVE_STRONG_GETAUXVAL=1');
20
+
21
+ // Add the things we detected
22
+ gyp.defines.push(...be.defines(null, true));
23
+ gyp.libraries.push(...be.libs());
24
+
25
+ gyp = {
26
+ conditions: [
27
+ ['OS!="win" and target_arch not in "ia32 x32 x64"',
28
+ gyp],
29
+ ],
30
+ };
31
+
32
+ console.log(JSON.stringify(gyp, null, 2));
@@ -0,0 +1,4 @@
1
+ ---
2
+ Language: Cpp
3
+ BasedOnStyle: Google
4
+ ...
@@ -0,0 +1,31 @@
1
+ # Project Files unneeded by docker
2
+ cmake/ci/Makefile
3
+ cmake/ci/docker
4
+ cmake/ci/doc
5
+ cmake/ci/cache
6
+ .git
7
+ .gitignore
8
+ .github
9
+ .dockerignore
10
+ .clang-format
11
+ appveyor.yml
12
+ .travis.yml
13
+ AUTHORS
14
+ CONTRIBUTING.md
15
+ CONTRIBUTORS
16
+ LICENSE
17
+ README.md
18
+
19
+ build/
20
+ cmake_build/
21
+ build_cross/
22
+ cmake-build-*/
23
+ out/
24
+
25
+ # Editor directories and files
26
+ .idea/
27
+ .vagrant/
28
+ .vscode/
29
+ .vs/
30
+ *.user
31
+ *.swp
@@ -0,0 +1,5 @@
1
+ # Create a virtual environment with all tools installed
2
+ # ref: https://hub.docker.com/_/alpine
3
+ FROM alpine:edge
4
+ # Install system build dependencies
5
+ RUN apk add --no-cache git clang-extra-tools
@@ -0,0 +1,30 @@
1
+ name: AArch64 Linux CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ make:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ targets: [
17
+ [aarch64],
18
+ [aarch64be],
19
+ [aarch64-linux-gnu],
20
+ [aarch64_be-linux-gnu]
21
+ ]
22
+ fail-fast: false
23
+ env:
24
+ TARGET: ${{ matrix.targets[0] }}
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - name: Build
28
+ run: make --directory=cmake/ci ${TARGET}_build
29
+ - name: Test
30
+ run: make --directory=cmake/ci ${TARGET}_test
@@ -0,0 +1,22 @@
1
+ name: amd64 FreeBSD CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Only MacOS hosted runner provides virtualisation with vagrant/virtualbox installed.
12
+ # see: https://github.com/actions/virtual-environments/tree/main/images/macos
13
+ make:
14
+ runs-on: macos-10.15
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: vagrant version
18
+ run: Vagrant --version
19
+ - name: VirtualBox version
20
+ run: virtualbox -h
21
+ - name: Build
22
+ run: cd cmake/ci/vagrant/freebsd && vagrant up
@@ -0,0 +1,26 @@
1
+ name: amd64 Linux Bazel
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ bazel:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Check out repository code
16
+ uses: actions/checkout@v2
17
+ - name: Install Bazel
18
+ run: |
19
+ curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
20
+ sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
21
+ echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
22
+ sudo apt-get update
23
+ sudo apt-get install bazel
24
+ bazel --version
25
+ - name: Test
26
+ run: bazel test -s --verbose_failures //...
@@ -0,0 +1,31 @@
1
+ name: amd64 Linux CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ make:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Env
17
+ run: make --directory=cmake/ci amd64_env
18
+ - name: Devel
19
+ run: make --directory=cmake/ci amd64_devel
20
+ - name: Build
21
+ run: make --directory=cmake/ci amd64_build
22
+ - name: Test
23
+ run: make --directory=cmake/ci amd64_test
24
+ - name: Install Env
25
+ run: make --directory=cmake/ci amd64_install_env
26
+ - name: Install Devel
27
+ run: make --directory=cmake/ci amd64_install_devel
28
+ - name: Install Build
29
+ run: make --directory=cmake/ci amd64_install_build
30
+ - name: Install Test
31
+ run: make --directory=cmake/ci amd64_install_test
@@ -0,0 +1,43 @@
1
+ name: amd64 MacOS CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ xcode:
13
+ runs-on: macos-latest
14
+ env:
15
+ CTEST_OUTPUT_ON_FAILURE: 1
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Check cmake
19
+ run: cmake --version
20
+ - name: Configure
21
+ run: cmake -S. -Bbuild -G "Xcode" -DCMAKE_CONFIGURATION_TYPES=Release
22
+ - name: Build
23
+ run: cmake --build build --config Release --target ALL_BUILD -v
24
+ - name: Test
25
+ run: cmake --build build --config Release --target RUN_TESTS -v
26
+ - name: Install
27
+ run: cmake --build build --config Release --target install -v
28
+ make:
29
+ runs-on: macos-latest
30
+ env:
31
+ CTEST_OUTPUT_ON_FAILURE: 1
32
+ steps:
33
+ - uses: actions/checkout@v2
34
+ - name: Check cmake
35
+ run: cmake --version
36
+ - name: Configure
37
+ run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
38
+ - name: Build
39
+ run: cmake --build build --target all -v
40
+ - name: Test
41
+ run: cmake --build build --target test -v
42
+ - name: Install
43
+ run: cmake --build build --target install -v
@@ -0,0 +1,25 @@
1
+ name: amd64 Windows CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ msvc:
13
+ runs-on: windows-latest
14
+ env:
15
+ CTEST_OUTPUT_ON_FAILURE: 1
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Configure
19
+ run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release
20
+ - name: Build
21
+ run: cmake --build build --config Release --target ALL_BUILD -- /maxcpucount
22
+ - name: Test
23
+ run: cmake --build build --config Release --target RUN_TESTS -- /maxcpucount
24
+ - name: Install
25
+ run: cmake --build build --config Release --target INSTALL -- /maxcpucount
@@ -0,0 +1,31 @@
1
+ name: ARM Linux CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ make:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ targets: [
17
+ [arm-linux-gnueabihf],
18
+ [armv8l-linux-gnueabihf],
19
+ [arm-linux-gnueabi],
20
+ [armeb-linux-gnueabihf],
21
+ [armeb-linux-gnueabi]
22
+ ]
23
+ fail-fast: false
24
+ env:
25
+ TARGET: ${{ matrix.targets[0] }}
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - name: Build
29
+ run: make --directory=cmake/ci ${TARGET}_build
30
+ - name: Test
31
+ run: make --directory=cmake/ci ${TARGET}_test
@@ -0,0 +1,24 @@
1
+ name: clang-format Check
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ # Building using the github runner environement directly.
7
+ clang-format:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - name: Fetch origin/main
12
+ run: git fetch origin main
13
+ - name: List of changed file(s)
14
+ run: git diff --name-only FETCH_HEAD
15
+
16
+ - name: Build clang-format docker
17
+ run: cd .github/workflows && docker build --tag=linter .
18
+ - name: Check clang-format
19
+ run: docker run --rm --init -v $(pwd):/repo linter:latest clang-format --version
20
+ - name: clang-format help
21
+ run: docker run --rm --init -v $(pwd):/repo linter:latest clang-format --help
22
+
23
+ - name: Check current commit
24
+ run: docker run --rm --init -v $(pwd):/repo -w /repo linter:latest sh -c "git diff --diff-filter=d --name-only FETCH_HEAD | grep '\.c$\|\.h$\|\.cc$' | xargs clang-format --style=file --dry-run --Werror "
@@ -0,0 +1,30 @@
1
+ name: MIPS Linux CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ make:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ targets: [
17
+ [mips32],
18
+ [mips32el],
19
+ [mips64],
20
+ [mips64el]
21
+ ]
22
+ fail-fast: false
23
+ env:
24
+ TARGET: ${{ matrix.targets[0] }}
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - name: Build
28
+ run: make --directory=cmake/ci ${TARGET}_build
29
+ - name: Test
30
+ run: make --directory=cmake/ci ${TARGET}_test
@@ -0,0 +1,29 @@
1
+ name: POWER Linux CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ make:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ targets: [
17
+ [ppc],
18
+ [ppc64],
19
+ [ppc64le],
20
+ ]
21
+ fail-fast: false
22
+ env:
23
+ TARGET: ${{ matrix.targets[0] }}
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Build
27
+ run: make --directory=cmake/ci ${TARGET}_build
28
+ - name: Test
29
+ run: make --directory=cmake/ci ${TARGET}_test
@@ -0,0 +1,28 @@
1
+ name: RISCV Linux CMake
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ # min hours day(month) month day(week)
8
+ - cron: '0 0 7,22 * *'
9
+
10
+ jobs:
11
+ # Building using the github runner environement directly.
12
+ make:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ targets: [
17
+ [riscv32],
18
+ [riscv64],
19
+ ]
20
+ fail-fast: false
21
+ env:
22
+ TARGET: ${{ matrix.targets[0] }}
23
+ steps:
24
+ - uses: actions/checkout@v2
25
+ - name: Build
26
+ run: make --directory=cmake/ci ${TARGET}_build
27
+ - name: Test
28
+ run: make --directory=cmake/ci ${TARGET}_test