Skip to content

Commit 3756be4

Browse files
Update build.yml
1 parent 2f3069a commit 3756be4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,19 @@ jobs:
4343
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
4444
restore-keys: |
4545
${{ runner.os }}-node-modules-
46-
47-
- name: Set Environment Variables for node-gyp
48-
run: |
49-
setx OPENSSL_FIPS ""
5046
5147
5248
- name: Install dependencies
5349
if: steps.node-modules-cache.outputs.cache-hit != 'true'
5450
run: yarn install
5551

52+
- name: Patch binding.gyp for openssl_fips
53+
run: |
54+
$file = "node_modules/register-scheme/binding.gyp"
55+
(Get-Content $file) | ForEach-Object {
56+
$_ -replace "'openssl_fips != \"\"'", "'openssl_fips != \"\" or \"openssl_fips\" in vars'"
57+
} | Set-Content $file
58+
5659
- name: Run build script
5760
run: .\build.bat
5861

0 commit comments

Comments
 (0)