Skip to content

Commit

Permalink
Fix workflow sysroot dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc committed Apr 22, 2024
1 parent ca98ef5 commit da7a879
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ jobs:
- uses: bahmutov/npm-install@v1.8.35
- name: Build native packages
run: yarn build-native-${{ inputs.profile }}
env:
# Even though RUST is cross-compiling each runner job sholud already
# be running on its target platform, so we can point pkg-config at
# the root to prevent it thinking that's not the case and that it
# needs a cross-compilation root.
PKG_CONFIG_SYSROOT_DIR: /
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: strip packages/*/*/*.node
- name: Upload artifacts
Expand Down Expand Up @@ -145,6 +151,7 @@ jobs:
run: yarn build-native-${{ inputs.profile }}
env:
RUST_TARGET: ${{ matrix.target }}
PKG_CONFIG_SYSROOT_DIR: /
CFLAGS: ${{ matrix.cflags }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: ${{ matrix.strip }} packages/*/*/*.node
Expand Down Expand Up @@ -198,6 +205,7 @@ jobs:
run: yarn build-native-${{ inputs.profile }}
env:
RUST_TARGET: ${{ matrix.target }}
PKG_CONFIG_SYSROOT_DIR: /
CFLAGS: ${{ matrix.cflags }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: ${{ matrix.strip }} packages/*/*/*.node
Expand Down Expand Up @@ -227,6 +235,8 @@ jobs:
- uses: bahmutov/npm-install@v1.8.35
- name: Build native packages
run: yarn build-native-${{ inputs.profile }}
env:
PKG_CONFIG_SYSROOT_DIR: /
- name: Download artifacts
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit da7a879

Please sign in to comment.