Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stein <steinlink@gmail.com>
  • Loading branch information
texodus committed Oct 14, 2024
1 parent 5a73fe8 commit 46343f3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ jobs:
skip_cache: ${{ steps.config-step.outputs.SKIP_CACHE }}

- name: WebAssembly Build
run: pnpm run build --ci
run: pnpm run build
env:
PACKAGE: "perspective-cpp,perspective,perspective-viewer,perspective-viewer-datagrid,perspective-viewer-d3fc,perspective-viewer-openlayers,perspective-workspace,perspective-cli"
CI: 1
# PSP_USE_CCACHE: 1

- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -242,6 +243,7 @@ jobs:
PSP_ARCH: ${{ matrix.arch }}
PSP_ROOT_DIR: ${{ github.workspace }}
PSP_BUILD_WHEEL: 1
CI: 1

- name: Python Build (Windows)
run: |
Expand All @@ -254,6 +256,7 @@ jobs:
PACKAGE: "perspective-python"
PSP_ARCH: ${{ matrix.arch }}
PSP_BUILD_WHEEL: 1
CI: 1

# Windows sucks lol
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -323,6 +326,7 @@ jobs:
env:
PACKAGE: "perspective-rs"
PSP_ROOT_DIR: ${{ github.workspace }}
CI: 1

- name: Rust Build (Windows)
run: |
Expand Down Expand Up @@ -493,6 +497,7 @@ jobs:
run: pnpm run build
env:
PACKAGE: "perspective-jupyterlab"
CI: 1

- run: node tools/perspective-scripts/repack_wheel.mjs

Expand Down
4 changes: 3 additions & 1 deletion rust/perspective-js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ function get_host() {
function build_rust() {
const release_flag = IS_DEBUG ? "" : "--release";
execSync(
`PSP_ROOT_DIR=../.. cargo bundle --target=${get_host()} -- perspective_js ${release_flag} --features=export-init,external-cpp`,
`PSP_ROOT_DIR=../.. cargo bundle --target=${get_host()} -- perspective_js ${release_flag} --features=export-init${
!process.env.CI ? ",external-cpp" : ""
}`,
INHERIT
);
}
Expand Down
6 changes: 5 additions & 1 deletion rust/perspective-python/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ if (build_sdist) {
}

if (!build_wheel && !build_sdist) {
cmd.sh(`maturin develop ${flags} --features=external-cpp`);
cmd.sh(
`maturin develop ${flags} ${
!process.env.CI ? "--features=external-cpp" : ""
}`
);
}

cmd.runSync();
Expand Down
6 changes: 5 additions & 1 deletion rust/perspective/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ if (process.env.PSP_ARCH === "x86_64" && process.platform === "darwin") {
target = "--target=aarch64-unknown-linux-gnu";
}

cmd.sh(`cargo build ${flags} ${target} --features=external-cpp`);
cmd.sh(
`cargo build ${flags} ${target} ${
!process.env.CI ? "--features=external-cpp" : ""
}`
);
cmd.runSync();

0 comments on commit 46343f3

Please sign in to comment.