From e0dfc943631731a9b5426673fb20a89ac75cac96 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Sun, 2 Jan 2022 11:21:09 +0100 Subject: [PATCH] Include the `*.lib` and `*.exp` binaries for precompiled Windows These files are needed by binary plugins which link against the NodeGui binary. --- .github/workflows/release.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 163e3de0c..a9be7aa8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: