Skip to content

Commit 1d99426

Browse files
committed
fix: remove windows related configs
1 parent 50daba7 commit 1d99426

File tree

2 files changed

+1
-46
lines changed

2 files changed

+1
-46
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ jobs:
2929
build: |
3030
yarn build
3131
strip -x *.node
32-
- host: windows-latest
33-
build: yarn build
34-
target: x86_64-pc-windows-msvc
35-
architecture: x64
3632
- host: ubuntu-latest
3733
target: x86_64-unknown-linux-gnu
3834
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine-zig
@@ -114,46 +110,6 @@ jobs:
114110
name: bindings-${{ matrix.settings.target }}
115111
path: ${{ env.APP_NAME }}.*.node
116112
if-no-files-found: error
117-
test-macOS-windows-binding:
118-
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
119-
needs:
120-
- build
121-
strategy:
122-
fail-fast: false
123-
matrix:
124-
settings:
125-
- host: windows-latest
126-
target: x86_64-pc-windows-msvc
127-
node:
128-
- '12'
129-
- '14'
130-
- '16'
131-
runs-on: ${{ matrix.settings.host }}
132-
steps:
133-
- uses: actions/checkout@v3
134-
- name: Setup node
135-
uses: actions/setup-node@v3
136-
with:
137-
node-version: ${{ matrix.node }}
138-
check-latest: true
139-
cache: yarn
140-
- name: Cache NPM dependencies
141-
uses: actions/cache@v2
142-
with:
143-
path: node_modules
144-
key: npm-cache-test-${{ matrix.settings.target }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}
145-
- name: Install dependencies
146-
run: yarn install --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
147-
- name: Download artifacts
148-
uses: actions/download-artifact@v3
149-
with:
150-
name: bindings-${{ matrix.settings.target }}
151-
path: .
152-
- name: List packages
153-
run: ls -R .
154-
shell: bash
155-
- name: Test bindings
156-
run: yarn test
157113
test-linux-x64-gnu-binding:
158114
name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
159115
needs:
@@ -195,7 +151,6 @@ jobs:
195151
name: Publish
196152
runs-on: ubuntu-latest
197153
needs:
198-
- test-macOS-windows-binding
199154
- test-linux-x64-gnu-binding
200155
steps:
201156
- uses: actions/checkout@v3

__test__/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ export function hasIPv6() {
4141
const re = isWindows ? /Loopback Pseudo-Interface/ : /lo/;
4242
return Object.keys(iFaces).some((name) => {
4343
return re.test(name) &&
44-
iFaces[name].some(({ family }) => family === 'IPv6');
44+
iFaces[name]?.some(({ family }) => family === 'IPv6');
4545
});
4646
}

0 commit comments

Comments
 (0)