Skip to content

Commit

Permalink
x64
Browse files Browse the repository at this point in the history
  • Loading branch information
murat-dogan committed Dec 1, 2024
1 parent 97bba10 commit c32ae57
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
# tags:
# - v*

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

jobs:
build-windows-x64:
runs-on: windows-2022
Expand All @@ -18,50 +15,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Install OpenSSL
run: choco install openssl
run: choco install openssl -y
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: set npm_config_cache= && set NPM_CONFIG_CACHE= && npm install --build-from-source
env:
CI: true
# - name: Test
# run: npm run test
# env:
# CI: true
- name: Upload
run: node_modules/.bin/prebuild -r napi --upload -u ${{ secrets.GITHUB_TOKEN }}
env:
CI: true

build-windows-x86:
runs-on: windows-2022
strategy:
matrix:
node_version: [18.x]
node_arch:
- x86
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- name: Install OpenSSL
# openssl v3.1.1 [Approved]
# openssl package files install completed. Performing other installation steps.
# ERROR: 32-bit installation is not supported for openssl
run: choco install openssl --x86=true --version=1.1.1.2100
- name: Use Node.js ${{ matrix.node_version }}
uses: aminya/setup-node@x86
with:
node-version: ${{ matrix.node_version }}
node-arch: ${{ matrix.node_arch }}
- name: Build
run: set npm_config_cache= && set NPM_CONFIG_CACHE= && npm install --build-from-source
run: npm install --build-from-source
env:
CI: true
# - name: Test
Expand Down

0 comments on commit c32ae57

Please sign in to comment.