Skip to content

Commit

Permalink
ci: some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Dec 24, 2024
1 parent ff041a3 commit 5cc5359
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/matrix-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: matrix-build
env:
DEBUG: napi:*
PROJECT_NAME: node-web-audio-api
CARGO_BUILD_NAME: libnode_web_audio_api
MACOSX_DEPLOYMENT_TARGET: '10.13'
CARGO_TERM_COLOR: always

Expand Down Expand Up @@ -33,10 +34,10 @@ jobs:
target: x86_64-pc-windows-msvc
command: cargo

- name: linux-arm64-gnu
runner: ubuntu-latest
target: aarch64-unknown-linux-gnu
command: cross
# - name: linux-arm64-gnu
# runner: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# command: cross

name: build - ${{ matrix.name }}
steps:
Expand Down Expand Up @@ -72,11 +73,12 @@ jobs:
run: npm run generate

- name: Build Binary
shell: bash
run: |
if [[ "${{ matrix.runner }}" == "ubuntu-latest" ]]; then
${{ matrix.command }} build --verbose --locked --features jack --release --target ${{ matrix.target }}
${{ matrix.command }} build --locked --features jack --release --target ${{ matrix.target }}
else
${{ matrix.command }} build --verbose --locked --release --target ${{ matrix.target }}
${{ matrix.command }} build --locked --release --target ${{ matrix.target }}
fi
- name: Rename Binary
Expand All @@ -92,7 +94,7 @@ jobs:
fi
# The built binary output location
BIN_OUTPUT="target/${{ matrix.target }}/release/lib${PROJECT_NAME}${BIN_SUFFIX}"
BIN_OUTPUT="target/${{ matrix.target }}/release/lib${CARGO_BUILD_NAME}${BIN_SUFFIX}"
# Define a better name for the final binary
BIN_RELEASE="${PROJECT_NAME}.${{ matrix.name }}.node"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
# @todo - to remove - prevents running while testing
# push:
# branches: [main, chore/refactor-ci]
pull_request:
# pull_request:
workflow_dispatch:
workflow_call:

Expand Down

0 comments on commit 5cc5359

Please sign in to comment.