Compare commits

..

1 Commits

Author SHA1 Message Date
Will Jones
6c19047f28 fixes for action 2023-05-23 19:41:01 -07:00
2 changed files with 6 additions and 3 deletions

View File

@@ -82,6 +82,7 @@ jobs:
node-version: 20
cache: 'npm'
cache-dependency-path: node/package-lock.json
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: |
sudo apt update
@@ -100,7 +101,6 @@ jobs:
runs-on: macos-12
needs: draft-release
strategy:
fail-fast: false
matrix:
target: [x86_64-apple-darwin, aarch64-apple-darwin]
steps:
@@ -123,7 +123,6 @@ jobs:
runs-on: ubuntu-latest
needs: draft-release
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu:centos

View File

@@ -20,7 +20,11 @@ build_node_binaries() {
do
echo "Building node library for $target"
# cross doesn't yet pass this down to Docker, so we do it ourselves.
export CROSS_CONTAINER_OPTS="--platform linux/amd64"
if [[ $target == x86_64* ]]; then
export CROSS_CONTAINER_OPTS="--platform linux/amd64"
else
export CROSS_CONTAINER_OPTS="--platform linux/arm64/v8"
fi
npm run cross-release -- --target $target
npm run pack-build -- --target $target
done