Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 27, 2024
1 parent 5ab0a38 commit 34ce678
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 60 deletions.
118 changes: 59 additions & 59 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
os:
- ubuntu-20.04
- windows-2019
# - windows-2019
node_arch:
- x64
cpp_arch:
Expand All @@ -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
Expand Down Expand Up @@ -162,31 +162,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
Expand Down Expand Up @@ -235,15 +235,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
Expand Down
2 changes: 1 addition & 1 deletion script/smoke-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 ../
rm -rf "./smoke-test-${pm}"
Expand Down

0 comments on commit 34ce678

Please sign in to comment.