Skip to content

Commit 2b24a64

Browse files
committed
Small fixes for windows
1 parent e253678 commit 2b24a64

3 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/automaticBuildingWin.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ jobs:
5454
shell: bash
5555
run: |
5656
VERSION=${GITHUB_REF/refs\/tags\//}
57-
echo "::set-output name=VERSION::${VERSION#w}"
57+
echo "VERSION=${VERSION#w}" >> "$GITHUB_OUTPUT"
5858
5959
- name: Archive Windows
60-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@v4
6161
with:
6262
name: windows-built
6363
path: ./build/dist/MEDomicsLab-${{ env.VERSION }}-win.exe
64+
compression-level: 0
6465
env:
6566
VERSION: ${{ steps.get-tag.outputs.VERSION }}
6667

@@ -73,7 +74,7 @@ jobs:
7374
uses: actions/checkout@v4
7475

7576
- name: Download Windows
76-
uses: actions/download-artifact@v3
77+
uses: actions/download-artifact@v4
7778
with:
7879
name: windows-built
7980

@@ -98,7 +99,7 @@ jobs:
9899
id: get-tag
99100
run: |
100101
VERSION=${GITHUB_REF/refs\/tags\//}
101-
echo "::set-output name=VERSION::${VERSION#w}"
102+
echo "VERSION=${VERSION#w}" >> "$GITHUB_OUTPUT"
102103
103104
- name: Publish to GitHub
104105
uses: softprops/action-gh-release@v1

go_server/main.exe

0 Bytes
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
REM Clone libmongocrypt repository
3+
git clone --branch node-v6.0.1 https://github.com/mongodb/libmongocrypt.git
4+
cd libmongocrypt
5+
6+
REM Build libmongocrypt node bindings
7+
cd bindings\node
8+
9+
REM Windows requires Git Bash or WSL to run the build-static.sh script
10+
bash ./etc/build-static.sh
11+
12+
npm run rebuild
13+
14+
cd ..\..\..
15+
REM Copy and overwrite the existing node bindings
16+
REM Remove everything in the node_modules/mongodb-client-encryption directory
17+
if exist node_modules\mongodb-client-encryption (
18+
rmdir /s /q node_modules\mongodb-client-encryption
19+
)
20+
xcopy /E /I /Y libmongocrypt\bindings\node node_modules\mongodb-client-encryption

0 commit comments

Comments
 (0)