Skip to content

Commit 00c5c81

Browse files
authored
Merge pull request #49 from baryhuang/fix-release-build
Fix ARM64 cross-compilation in release workflow
2 parents 997dca6 + dc50cf0 commit 00c5c81

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ jobs:
9797
sudo apt-get update
9898
sudo apt-get install -y python3-setuptools
9999
100+
- name: Install ARM64 cross-compilation tools (Linux ARM64 only)
101+
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
102+
run: |
103+
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
104+
100105
- name: Setup Python (macOS)
101106
if: matrix.os == 'macos-latest'
102107
uses: actions/setup-python@v4
@@ -108,6 +113,9 @@ jobs:
108113
env:
109114
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110115
CSC_IDENTITY_AUTO_DISCOVERY: false
116+
# For ARM64 cross-compilation on x64 runner
117+
npm_config_arch: ${{ matrix.arch }}
118+
npm_config_target_arch: ${{ matrix.arch }}
111119

112120
- name: List dist directory
113121
run: ls -la dist/

0 commit comments

Comments
 (0)