Skip to content

Commit

Permalink
fix github release not passing params to napi script
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronvg committed Aug 11, 2024
1 parent 24b5895 commit f5c635b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
tags:
- "test-release/*.*"
- "*.*"

branches:
- "macos-x86-build"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -108,7 +109,7 @@ jobs:
_:
- target: aarch64-apple-darwin
host: macos-14
node_build: pnpm build --target aarch64-apple-darwin
node_build: pnpm build -- --target aarch64-apple-darwin
baml_build_help: "off"
# mise: true

Expand All @@ -122,19 +123,19 @@ jobs:
# from https://github.com/PyO3/maturin-action?tab=readme-ov-file#manylinux-docker-container
# need a new version of manylinux to build crates on arm64-linux
container: ghcr.io/rust-cross/manylinux_2_28-cross:aarch64
node_build: pnpm build --target aarch64-unknown-linux-gnu --use-napi-cross
node_build: pnpm build -- --target aarch64-unknown-linux-gnu --use-napi-cross
cargo_args: -p baml-typescript-ffi -p baml-python-ffi
baml_build_help: "off"

- target: x86_64-apple-darwin
host: macos-latest
node_build: pnpm build --target x86_64-apple-darwin
node_build: pnpm build -- --target x86_64-apple-darwin
baml_build_help: "off"
# mise: true

- target: x86_64-pc-windows-msvc
host: windows-latest
node_build: pnpm build --target x86_64-pc-windows-msvc
node_build: pnpm build -- --target x86_64-pc-windows-msvc
setup-python-architecture: x64
cargo_args: -p baml-typescript-ffi -p baml-python-ffi
baml_build_help: "off"
Expand All @@ -143,7 +144,7 @@ jobs:
host: ubuntu-latest
# Using any of the manylinux containers breaks a bunch of stuff: actions/checkout here, pnpm build there - not worth it.
container: null
node_build: pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross
node_build: pnpm build -- --target x86_64-unknown-linux-gnu --use-napi-cross
mise: true

name: Build ${{ matrix._.target }}
Expand Down Expand Up @@ -190,12 +191,12 @@ jobs:
- name: Build Rust
run: cargo build --release --target ${{ matrix._.target }} ${{ matrix._.cargo_args }}
working-directory: engine

# Build Node
- name: PNPM Build
run: ${{ matrix._.node_build }}
working-directory: engine/language_client_typescript

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f5c635b

Please sign in to comment.