commit 8586571b477034980330fc9628b3284f45ef181e
parent bbffcf92b1c5e9e58fc559f7a7573ab11937b0a6
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 1 Oct 2023 18:21:39 +0200
Delete windows references
Diffstat:
2 files changed, 3 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
@@ -34,9 +34,6 @@ jobs:
brew install pkg-config
make build
strip -x *.node
- # - host: windows-latest
- # build: make build
- # target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
build: |-
@@ -97,20 +94,8 @@ jobs:
run: ${{ matrix.settings.setup }}
if: ${{ matrix.settings.setup }}
shell: bash
- - name: Setup node x86
- if: matrix.settings.target == 'i686-pc-windows-msvc'
- run: yarn config set supportedArchitectures.cpu "ia32"
- shell: bash
- name: Install dependencies
run: yarn install
- - name: Setup node x86
- uses: actions/setup-node@v3
- if: matrix.settings.target == 'i686-pc-windows-msvc'
- with:
- node-version: 18
- check-latest: true
- cache: yarn
- architecture: x86
- name: Build
run: ${{ matrix.settings.build }}
shell: bash
@@ -120,7 +105,7 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error
- test-macOS-windows-binding:
+ test-macOS-binding:
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
needs:
- build
@@ -130,8 +115,6 @@ jobs:
settings:
- host: macos-latest
target: x86_64-apple-darwin
- # - host: windows-latest
- # target: x86_64-pc-windows-msvc
node:
- '14'
- '16'
@@ -232,7 +215,7 @@ jobs:
name: Publish
runs-on: ubuntu-latest
needs:
- - test-macOS-windows-binding
+ - test-macOS-binding
- test-linux-x64-gnu-binding
- test-linux-aarch64-gnu-binding
steps:
diff --git a/index.js b/index.js
@@ -116,7 +116,7 @@ switch (platform) {
nativeBinding = require('@node_yara_rs/node-yara-rs-darwin-universal')
}
break
- } catch {}
+ } catch { }
switch (arch) {
case 'x64':
localFileExisted = existsSync(join(__dirname, 'node-yara-rs.darwin-x64.node'))