Skip to content

Commit

Permalink
add rustflags to ts release
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronvg committed Nov 4, 2024
1 parent 94ceeb7 commit 30c01d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-ruby-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ jobs:
mkdir -p "$rb_sys_dock_cache_dir"
echo "RB_SYS_DOCK_CACHE_DIR=$rb_sys_dock_cache_dir" >> $GITHUB_ENV
echo "rb_sys_version=$rb_sys_version" >> $GITHUB_OUTPUT
cat >>$GITHUB_ENV <<EOF
RUSTFLAGS="--cfg tracing_unstable"
EOF
- name: Setup rb-sys
shell: bash
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/build-typescript-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc
CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
AR_x86_64_unknown_linux_musl=x86_64-linux-musl-ar
RUSTFLAGS="-C target-feature=-crt-static --cfg tracing_unstable"
EOF
node_build: pnpm build:napi-release --target x86_64-unknown-linux-musl --use-napi-cross

Expand All @@ -66,6 +67,9 @@ jobs:
curl -LO https://musl.cc/aarch64-linux-musl-cross.tgz
tar -xzf aarch64-linux-musl-cross.tgz
echo "$PWD/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
cat >>$GITHUB_ENV <<EOF
RUSTFLAGS="-C target-feature=-crt-static --cfg tracing_unstable"
EOF
node_build: pnpm build:napi-release --target aarch64-unknown-linux-musl --use-napi-cross

name: ${{ matrix._.target }}
Expand All @@ -83,9 +87,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
# cache: ""
# cache-dependency-path: |
# engine/language_client_typescript/pnpm-lock.yaml
cache: pnpm
cache-dependency-path: |
engine/language_client_typescript/pnpm-lock.yaml
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
Expand All @@ -95,7 +99,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: engine
shared-key: engine-${{ github.job }}-${{ matrix._.target }}-v2
shared-key: engine-${{ github.job }}-${{ matrix._.target }}
cache-on-failure: true

- name: PNPM Install
Expand Down

0 comments on commit 30c01d3

Please sign in to comment.