Skip to content

Commit

Permalink
ci: set the node target arch correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 12, 2025
1 parent e450a7d commit b7f999b
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ${{ matrix.os }}
# prettier-ignore
name: ${{ matrix.os }}-${{ matrix.node_arch }}-${{ matrix.dockerfile }}-${{ matrix.distro }}
name: ${{ matrix.os }}-${{ matrix.node_target_arch }}-${{ matrix.dockerfile }}-${{ matrix.distro }}
strategy:
fail-fast: false
matrix:
Expand All @@ -19,6 +19,8 @@ jobs:
- windows-2019
node_arch:
- x64
node_target_arch:
- x64
cpp_arch:
- x64
dockerfile:
Expand All @@ -31,48 +33,55 @@ jobs:
include:
- os: windows-2019
node_arch: ia32
node_target_arch: ia32
cpp_arch: amd64_x86
native: true

- os: windows-2022
node_arch: x64
node_target_arch: arm64
cpp_arch: amd64_arm64
native: true

- os: macos-13
node_arch: x64
node_target_arch: x64
cpp_arch: x64
native: true

- os: macos-14
node_arch: arm64
cpp_arch: amd64_arm64
node_target_arch: arm64
cpp_arch: arm64
native: true

# Musl Alpine
- os: ubuntu-24.04
dockerfile: docker/alpine.dockerfile
node_arch: x64
node_target_arch: x64
cpp_arch: x64
native: false

# Debian Arm
- os: ubuntu-24.04
node_arch: arm64
cpp_arch: amd64_arm64
distro: bookworm
node_arch: arm64
node_target_arch: arm64
cpp_arch: arm64
native: false

# Musl Alpine Arm
- os: ubuntu-24.04
node_arch: arm64
cpp_arch: amd64_arm64
distro: alpine_latest
node_arch: arm64
node_target_arch: arm64
cpp_arch: arm64
native: false

env:
npm_config_arch: ${{ matrix.node_arch }}
npm_config_target_arch: ${{ matrix.node_arch }}
npm_config_target_arch: ${{ matrix.node_target_arch }}
setup_node_arch: ${{ matrix.node_arch }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit b7f999b

Please sign in to comment.