Include the *.lib and *.exp binaries for precompiled Windows

These files are needed by binary plugins which link against the NodeGui binary.
This commit is contained in:
Simon Edwards 2022-01-02 11:21:09 +01:00
parent 9b451ecac3
commit e0dfc94363

View File

@ -42,6 +42,7 @@ jobs:
CMAKE_BUILD_PARALLEL_LEVEL: 8
- name: Compress files
if: ! contains(matrix.os, 'windows-latest')
uses: a7ul/tar-action@v1.0.2
id: compress
with:
@ -51,6 +52,19 @@ jobs:
./nodegui_core.node
outPath: ${{ env.ARCHIVE_FILENAME }}
- name: Compress files (Windows)
if: contains(matrix.os, 'windows-latest')
uses: a7ul/tar-action@v1.0.2
id: compress
with:
command: c
cwd: ./build/Release
files: |
./nodegui_core.node
./nodegui_core.lib
./nodegui_core.exp
outPath: ${{ env.ARCHIVE_FILENAME }}
- uses: actions/upload-artifact@v1
with:
name: ${{ env.ARCHIVE_FILENAME }}
@ -75,7 +89,7 @@ jobs:
- name: Install ubuntu deps
run: sudo apt update
- run: sudo apt install mesa-common-dev libglu1-mesa-dev
- run: yarn install
- run: npm install
- run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc
- run: npm publish --access=public
env: