diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a1502f4c..1a76056e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,7 +14,7 @@ jobs: matrix: os: - ubuntu-20.04 - - windows-2019 + # - windows-2019 node_arch: - x64 cpp_arch: @@ -24,34 +24,34 @@ jobs: docker_cmd: - "" - include: - - os: windows-2019 - node_arch: ia32 - cpp_arch: amd64_x86 - - # - os: windows-2022 - # node_arch: x64 - # arch: arm64 - # cpp_arch: amd64_arm64 - - - os: macos-13 - node_arch: x64 - cpp_arch: x64 - - - os: macos-14 - node_arch: arm64 - cpp_arch: amd64_arm64 - - # Alpine - - os: ubuntu-22.04 - docker: node:18-alpine - docker_cmd: - apk add --no-cache bash build-base curl git g++ make ninja-build - pkgconfig unzip zip python3 tar cmake ninja musl-dev && cp - /usr/lib/ninja-build/bin/ninja /usr/bin/ninja && npm i -g pnpm && - pnpm install && pnpm run build - node_arch: x64 - cpp_arch: x64 + # include: + # - os: windows-2019 + # node_arch: ia32 + # cpp_arch: amd64_x86 + + # # - os: windows-2022 + # # node_arch: x64 + # # arch: arm64 + # # cpp_arch: amd64_arm64 + + # - os: macos-13 + # node_arch: x64 + # cpp_arch: x64 + + # - os: macos-14 + # node_arch: arm64 + # cpp_arch: amd64_arm64 + + # # Alpine + # - os: ubuntu-22.04 + # docker: node:18-alpine + # docker_cmd: + # apk add --no-cache bash build-base curl git g++ make ninja-build + # pkgconfig unzip zip python3 tar cmake ninja musl-dev && cp + # /usr/lib/ninja-build/bin/ninja /usr/bin/ninja && npm i -g pnpm && + # pnpm install && pnpm run build + # node_arch: x64 + # cpp_arch: x64 env: npm_config_zmq_draft: false @@ -125,16 +125,16 @@ jobs: if: ${{ !matrix.docker }} run: pnpm run build.js - - name: Install Node 10 - if: ${{ !matrix.docker && matrix.os != 'macos-14' }} - uses: actions/setup-node@v4 - with: - node-version: 10 - architecture: ${{ env.setup_node_arch }} + # - name: Install Node 10 + # if: ${{ !matrix.docker && matrix.os != 'macos-14' }} + # uses: actions/setup-node@v4 + # with: + # node-version: 10 + # architecture: ${{ env.setup_node_arch }} - - name: Build Native - if: ${{ !matrix.docker && matrix.node_arch != 'ia32' }} - run: npm run build.native + # - name: Build Native + # if: ${{ !matrix.docker && matrix.node_arch != 'ia32' }} + # run: npm run build.native - name: Build Native Windows 32 if: ${{ matrix.os == 'windows-2019' && matrix.node_arch == 'ia32' }} @@ -164,31 +164,31 @@ jobs: name: build-${{ strategy.job-index }} overwrite: true - - name: Lint - if: "${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}" - run: pnpm run lint-test - - - name: Test - if: ${{ !matrix.docker }} - uses: nick-fields/retry@v3 - with: - timeout_minutes: 5 - max_attempts: 1 - command: | - pnpm run test - continue-on-error: true - - - name: Test Electron (Main) - if: "${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}" - uses: nick-fields/retry@v3 - with: - timeout_minutes: 5 - max_attempts: 1 - command: | - sudo apt-get install xvfb - pnpm install -g electron@latest - xvfb-run --auto-servernum pnpm run test.electron.main - continue-on-error: true + # - name: Lint + # if: "${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}" + # run: pnpm run lint-test + + # - name: Test + # if: ${{ !matrix.docker }} + # uses: nick-fields/retry@v3 + # with: + # timeout_minutes: 5 + # max_attempts: 1 + # command: | + # pnpm run test + # continue-on-error: true + + # - name: Test Electron (Main) + # if: "${{ contains(matrix.os, 'ubuntu') && !matrix.docker }}" + # uses: nick-fields/retry@v3 + # with: + # timeout_minutes: 5 + # max_attempts: 1 + # command: | + # sudo apt-get install xvfb + # pnpm install -g electron@latest + # xvfb-run --auto-servernum pnpm run test.electron.main + # continue-on-error: true Package: runs-on: ubuntu-latest @@ -239,15 +239,15 @@ jobs: matrix: os: - ubuntu-24.04 - - windows-2022 - - macos-13 + # - windows-2022 + # - macos-13 node-version: - 10 - 22 - include: - - os: macos-14 - node-version: 22 + # include: + # - os: macos-14 + # node-version: 22 steps: - name: Install Node uses: actions/setup-node@v4 diff --git a/script/smoke-test.bash b/script/smoke-test.bash index 49086243..b22403e3 100755 --- a/script/smoke-test.bash +++ b/script/smoke-test.bash @@ -30,7 +30,7 @@ for pm in "${package_managers[@]}"; do ${pm} install echo "Require zeromq" - node -e "console.log(require('zeromq'))" + node -e "console.log(require('zeromq'))" || ls -R ./node_modules/zeromq cd "${root}" rm -rf "../zeromq-smoke-test-${pm}"