Skip to content

Commit

Permalink
fix: add support for Windows x86
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk committed Apr 15, 2024
1 parent ecbac2c commit 56d533c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 59 deletions.
62 changes: 5 additions & 57 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Automated deploy

on:
release:
types: [created]
on: [pull_request]

env:
VERSION: ${{ github.event.release.tag_name }}
Expand All @@ -20,6 +18,10 @@ jobs:
node_arch: x64
command: build:gyp
args: --arch x64+arm64
- os: windows-2019
label: x86
node_arch: x86
command: build:gyp
- os: windows-2019
label: x64
node_arch: x64
Expand Down Expand Up @@ -56,57 +58,3 @@ jobs:

- name: Prebuild package
run: npm run ${{ matrix.command }} -- ${{ matrix.args }}

- uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.os }}-${{ matrix.label }}
path: prebuilds/
if-no-files-found: error

merge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: build-artifacts
pattern: build-artifacts-*

deploy:
needs: merge
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.TARGET_REF }}
token: ${{ secrets.GPR_TOKEN }}

- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- uses: actions/download-artifact@v4
with:
name: build-artifacts
path: prebuilds

- name: Install dependencies
run: npm ci

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
scope: '@NeuraLegion'

- name: Publish to GPR
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"nan": "^2.19.0",
"node-gyp-build": "^4.8.0"
"node-gyp-build": "github:derevnjuk/node-gyp-build#265be9efaccf9f86d279875ca0458533353064c6"
},
"contributors": [
{
Expand Down Expand Up @@ -63,7 +63,7 @@
"devDependencies": {
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"prebuildify": "^6.0.0",
"prebuildify": "github:derevnjuk/prebuildify#7c2bf270e97a152bee4ae9b3b9c09e8d2120ee25",
"prebuildify-cross": "^5.1.0",
"semantic-release": "^23.0.8"
}
Expand Down

0 comments on commit 56d533c

Please sign in to comment.