-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1275 from thewtex/create-itk-wasm-pixi
create itk wasm pixi
- Loading branch information
Showing
17 changed files
with
581 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,12 @@ env: | |
jobs: | ||
cxx-build-workflow: | ||
# itk-wasm branch | ||
uses: thewtex/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@6868c9879405def5d7532e0437b57e78cbe0b6ea | ||
uses: thewtex/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@l@6868c9879405def5d7532e0437b57e78cbe0b6ea | ||
with: | ||
itk-module-deps: '[email protected]' | ||
ctest-options: '-E itkPipelineTest' | ||
# release-5.4 2025-07-02 | ||
itk-git-tag: '276a52a5c0b1a5df67c9a2b0fdcd0bc75504e011' | ||
# release-5.4 2024-11-21 | ||
itk-git-tag: '49413c3a9e8ecf0f912534e7c13f4c7bc3799d60' | ||
|
||
#python-build-workflow: | ||
## itk-wasm branch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
packages/core/typescript/create-itk-wasm/src/generate/environment-yml.ts
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
packages/core/typescript/create-itk-wasm/src/generate/itk-wasm-env-bash.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import fs from 'fs' | ||
import path from 'path' | ||
|
||
import ProjectSpec from '../project-spec.js' | ||
|
||
function generateItkWasmEnvBash(project: ProjectSpec) { | ||
const itkWasmEnvBashPath = path.join(project.directory, 'itk_wasm_env.bash') | ||
if (fs.existsSync(itkWasmEnvBashPath)) { | ||
return | ||
} | ||
|
||
const content = `#!/usr/bin/env bash | ||
function die() { | ||
echo "$1" | ||
exit 1 | ||
} | ||
export ITK_WASM_TEST_DATA_HASH=\${ITK_WASM_TEST_DATA_HASH:-$(cat package.json | jq -e -r '."itk-wasm"."test-data-hash"')} | ||
export ITK_WASM_TEST_DATA_URLS=\${ITK_WASM_TEST_DATA_URLS:-$(cat package.json | jq -e -r '."itk-wasm"."test-data-urls" | join(" ")')} | ||
export ITK_WASM_ITK_REPOSITORY=\${ITK_WASM_ITK_REPOSITORY:-"https://github.com/thewtex/ITK"} | ||
export ITK_WASM_ITK_BRANCH=\${ITK_WASM_ITK_BRANCH:-"itkwasm-2024-05-20-5db055d7ad3b-4"} | ||
export ITK_WASM_NATIVE_WORKSPACE=\${ITK_WASM_NATIVE_WORKSPACE:-$(pwd)/native} | ||
export ITK_WASM_ITK_SOURCE_DIR=\${ITK_WASM_ITK_SOURCE_DIR:-\${ITK_WASM_NATIVE_WORKSPACE}/ITK} | ||
export ITK_WASM_ITK_BUILD_DIR=\${ITK_WASM_ITK_BUILD_DIR:-\${ITK_WASM_NATIVE_WORKSPACE}/ITK-build} | ||
mkdir -p \${ITK_WASM_ITK_BUILD_DIR} || die "Could not create ITK build directory" | ||
export ITK_WASM_WEBASSEMBLY_INTERFACE_REPOSITORY=\${ITK_WASM_WEBASSEMBLY_INTERFACE_REPOSITORY:-"https://github.com/InsightSoftwareConsortium/ITK-Wasm"} | ||
export ITK_WASM_WEBASSEMBLY_INTERFACE_BRANCH=\${ITK_WASM_WEBASSEMBLY_INTERFACE_BRANCH:-"main"} | ||
export ITK_WASM_WEBASSEMBLY_INTERFACE_SOURCE_DIR=\${ITK_WASM_WEBASSEMBLY_INTERFACE_SOURCE_DIR:-\${ITK_WASM_NATIVE_WORKSPACE}/ITK-Wasm} | ||
export ITK_WASM_WEBASSEMBLY_INTERFACE_BUILD_DIR=\${ITK_WASM_WEBASSEMBLY_INTERFACE_BUILD_DIR:-\${ITK_WASM_NATIVE_WORKSPACE}/ITK-Wasm-build} | ||
mkdir -p \${ITK_WASM_WEBASSEMBLY_INTERFACE_BUILD_DIR} || die "Could not create ITK-Wasm build directory" | ||
` | ||
|
||
fs.writeFileSync(itkWasmEnvBashPath, content) | ||
} | ||
|
||
export default generateItkWasmEnvBash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.