Skip to content

Commit

Permalink
updating CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Dec 5, 2024
1 parent ef16ee5 commit 7389322
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/actions/build-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,22 @@ runs:
uses: ./.github/actions/build
with:
node: ${{ steps.node-test-version.outputs.node-version }}
node-major: ${{ inputs.node }}
arch: 'ia32'

- name: Build x64
uses: ./.github/actions/build
with:
node: ${{ steps.node-test-version.outputs.node-version }}
node-major: ${{ inputs.node }}
arch: 'x64'

- name: Build arm64
if: ${{ inputs.node >=20 }}
uses: ./.github/actions/build
with:
node: ${{ steps.node-test-version.outputs.node-version }}
node-major: ${{ inputs.node }}
arch: 'arm64'

- name: Upload artifacts
Expand Down
5 changes: 4 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
node:
description: 'Node version'
required: true
node-major:
description: 'Node major version'
required: true
arch:
description: 'Target arch'
required: true
Expand All @@ -24,5 +27,5 @@ runs:
}
node-gyp build
cmd /c copy /y build\Release\edge_*.node release\${{ inputs.arch }}\${{ inputs.node }}
cmd /c copy /y build\Release\edge_*.node release\${{ inputs.arch }}\${{ inputs.node-major }}
cmd /c rmdir /S /Q build

0 comments on commit 7389322

Please sign in to comment.