Skip to content

Commit

Permalink
WIP2
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stein <[email protected]>
  • Loading branch information
texodus committed Oct 13, 2024
1 parent e1f3288 commit e3173bf
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .github/actions/install-deps/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ runs:
shell: bash
run: echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion)" >> $GITHUB_ENV

# Use python 3.9 from manylinu
- run: echo "/opt/python/cp39-cp39/bin" >> $GITHUB_PATH
if: ${{ runner.os == 'Linux' }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
if: ${{ inputs.python == 'true' && runner.os != 'Linux' }}
Expand Down
29 changes: 10 additions & 19 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,26 +154,20 @@ jobs:
PACKAGE: "perspective-cpp,perspective,perspective-viewer,perspective-viewer-datagrid,perspective-viewer-d3fc,perspective-viewer-openlayers,perspective-workspace,perspective-cli"
# PSP_USE_CCACHE: 1

# - name: Docs Build
# run: pnpm run docs

# env:
# PACKAGE: "!perspective-python,!perspective-jupyterlab"

- uses: actions/upload-artifact@v4
with:
name: perspective-js-dist
path: |
rust/perspective-js/dist/
rust/perspective-viewer/dist
packages/perspective-jupyterlab/dist/
packages/perspective-viewer-d3fc/dist
packages/perspective-viewer-datagrid/dist
packages/perspective-viewer-openlayers/dist
packages/perspective-esbuild-plugin/dist
packages/perspective-webpack-plugin/dist
packages/perspective-cli/dist
packages/perspective-workspace/dist
rust/perspective-js/
rust/perspective-viewer/
packages/perspective-jupyterlab/
packages/perspective-viewer-d3fc/
packages/perspective-viewer-datagrid/
packages/perspective-viewer-openlayers/
packages/perspective-esbuild-plugin/
packages/perspective-webpack-plugin/
packages/perspective-cli/
packages/perspective-workspace/
# ,-,---. . . .-,--. . .
# '|___/ . . . | ,-| '|__/ . . |- |-. ,-. ,-.
Expand Down Expand Up @@ -237,9 +231,6 @@ jobs:
manylinux: ${{ matrix.container && 'true' || 'false' }}
skip_cache: ${{ steps.config-step.outputs.SKIP_CACHE }}

- run: echo "/opt/python/cp39-cp39/bin" >> $GITHUB_PATH
if: ${{ runner.os == 'Linux' }}

- name: Python Build
run: pnpm run build
if: ${{ !contains(matrix.os, 'windows') }}
Expand Down
2 changes: 1 addition & 1 deletion rust/perspective-js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ 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}`,
INHERIT
);
}
Expand Down
4 changes: 2 additions & 2 deletions rust/perspective-python/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if (build_wheel) {
flags += " -vv";
}

cmd.sh(`maturin build ${flags} --features=external-cpp ${target}`);
cmd.sh(`maturin build ${flags} ${target}`);
}

const old = fs.readFileSync("./pyproject.toml");
Expand All @@ -101,7 +101,7 @@ if (build_sdist) {
}

if (!build_wheel && !build_sdist) {
cmd.sh(`maturin develop ${flags} --features=external-cpp`);
cmd.sh(`maturin develop ${flags}`);
}

cmd.runSync();
Expand Down
1 change: 0 additions & 1 deletion rust/perspective-viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ crate-type = ["cdylib", "rlib"]
path = "src/rust/lib.rs"

[features]
external-bootstrap = []
metadata = []
default = []

Expand Down
1 change: 0 additions & 1 deletion rust/perspective-viewer/src/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ pub fn registerPlugin(name: &str) {
/// Elements from JavaScript, as the methods themselves won't be defined yet.
/// By default, this crate does not register `PerspectiveViewerElement` (as to
/// preserve backwards-compatible synchronous API).
#[cfg(not(feature = "external-bootstrap"))]
#[wasm_bindgen(js_name = "init")]
pub fn js_init() {
perspective_js::utils::set_global_logging();
Expand Down
2 changes: 1 addition & 1 deletion rust/perspective/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ 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}`);
cmd.runSync();

0 comments on commit e3173bf

Please sign in to comment.