-
Notifications
You must be signed in to change notification settings - Fork 867
Use Emscripten fetch in networkfilemanager #4627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+722
−1
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8f9a226
cmake: do not use is_sharp_embed_available if emscripten
jjimenezshaw b0640b2
Use emscripten_fetch in networkfilemanager.cpp
jjimenezshaw 388ebb5
add github workflow for emscripten
jjimenezshaw f80939c
[doc] Add CMake config ENABLE_EMSCRIPTEN_FETCH
jjimenezshaw b36295b
[doc] mention emscripten in network.rst
jjimenezshaw 1ffb622
[skip ci] add copyright to build_wasm.sh
jjimenezshaw 2cb05f4
[doc] make explicit hyperlink to ENABLE_EMSCRIPTEN_FETCH in network.rst
jjimenezshaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,43 @@ | ||
| name: Emscripten | ||
|
|
||
| on: | ||
| push: | ||
| paths-ignore: | ||
| - 'docs/**' | ||
| pull_request: | ||
| paths-ignore: | ||
| - 'docs/**' | ||
|
|
||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
|
|
||
| emscripten: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Build docker | ||
| run: docker build -t proj-emscripten-builder scripts/ci/emscripten/ | ||
|
|
||
| - name: Artifacts folder | ||
| run: mkdir -p "$PWD"/wasm_out | ||
|
|
||
| - name: Run docker | ||
| run: docker run --rm -v "$PWD":/build/proj_src -v "$PWD"/wasm_out:/usr/local/wasm proj-emscripten-builder | ||
|
|
||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: proj-js-wasm | ||
| retention-days: 15 | ||
| path: wasm_out/projModule.* |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -286,6 +286,7 @@ eg | |
| egm | ||
| ellps | ||
| emphasize | ||
| emscripten | ||
| encodings | ||
| endian | ||
| engsager | ||
|
|
||
This file contains hidden or 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 hidden or 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,31 @@ | ||
| # Use the official Emscripten SDK image. | ||
| FROM emscripten/emsdk:4.0.5 | ||
|
|
||
| # Set non-interactive frontend for package installations | ||
| ENV DEBIAN_FRONTEND="noninteractive" | ||
|
|
||
| # --- Install System Dependencies --- | ||
| RUN apt-get update && \ | ||
| apt-get install -y \ | ||
| sqlite3 \ | ||
| ninja-build && \ | ||
| # Clean up apt cache to reduce image size | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # --- Setup Build Directories --- | ||
| # Define standard locations for building and installing | ||
| ENV BUILD_DIR="/build" | ||
| ENV INSTALL_DIR="/usr/local/wasm" | ||
|
|
||
| # Create the directories | ||
| RUN mkdir -p ${BUILD_DIR}/proj_src \ | ||
| ${BUILD_DIR}/deps_src \ | ||
| ${INSTALL_DIR} | ||
|
|
||
| # Copy the build script into the container | ||
| COPY build_wasm.sh /scripts/build_wasm.sh | ||
| RUN chmod +x /scripts/build_wasm.sh | ||
|
|
||
| # Set the main command to execute the build script | ||
| WORKDIR /build | ||
| CMD ["/scripts/build_wasm.sh"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.