-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bump-scikit-learn_1.1.3_to_1.2.0
- Loading branch information
Showing
300 changed files
with
20,090 additions
and
1,887 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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: bootstrap python | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
|
||
build_simple_with_pixi: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-12, macos-14] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
TARGET_PLATFORM: emscripten-wasm32 | ||
GITHUB_OWNER: "emscripten-forge" | ||
|
||
steps: | ||
################################################################ | ||
# SETUP | ||
################################################################ | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
################################################################ | ||
# CONFIG | ||
################################################################ | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.20.1 | ||
|
||
- run: | | ||
# build compiler packages | ||
pixi run setup | ||
# build bzip2 sqlite zlib and libffi | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/bzip2 | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/zlib | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/sqlite | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/libffi | ||
# build python | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/python | ||
# build pyjs | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/pyjs | ||
# build regex | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/regex | ||
- name: Upload packages to Quetz | ||
if: github.repository == 'emscripten-forge/recipes' | ||
env: | ||
QUETZ_API_KEY: ${{ secrets.QUETZ_API_KEY }} | ||
MATRIX_OS: ${{ matrix.os }} | ||
run: | | ||
overall_success=true | ||
if [ "${MATRIX_OS}" = "ubuntu-latest" ]; then | ||
platforms=(emscripten-wasm32 linux-64 noarch) | ||
elif [ "${MATRIX_OS}" = "macos-12" ]; then | ||
platforms=(osx-64) | ||
elif [ "${MATRIX_OS}" = "macos-14" ]; then | ||
platforms=(osx-arm64) | ||
fi | ||
# Loop over platforms | ||
for platform in "${platforms[@]}"; do | ||
if [ -d "${GITHUB_WORKSPACE}/output/${platform}" ]; then | ||
cd "${GITHUB_WORKSPACE}/output/${platform}" | ||
files=$(ls *.tar.bz2 2> /dev/null) | ||
if [ -n "$files" ]; then | ||
for package in $files; do | ||
echo "Uploading ${package} for ${platform}" | ||
|
||
FILE_SHA256=$(sha256sum "${package}" | awk '{ print $1 }') | ||
CURL_CMD=( | ||
pixi run curl -H "X-API-Key: ${QUETZ_API_KEY}" -X POST | ||
"https://beta.mamba.pm/api/channels/emscripten-forge/upload/${package}?sha256=${FILE_SHA256}&force=false" | ||
--data-binary "@${package}" | ||
-o response_body.txt | ||
-w "%{http_code}" | ||
-s | ||
) | ||
HTTP_STATUS=$( "${CURL_CMD[@]}" ) | ||
RESPONSE=$(<response_body.txt) | ||
|
||
# Check the HTTP status code and log appropriate message | ||
if [[ "$HTTP_STATUS" -eq 201 ]]; then | ||
echo "Upload succeeded for ${package} on ${platform}" | ||
else | ||
echo "Error: Upload failed with HTTP status $HTTP_STATUS" | ||
echo "Response Body: $RESPONSE" | ||
overall_success=false | ||
fi | ||
rm -f response_body.txt | ||
done | ||
fi | ||
fi | ||
done | ||
|
||
# Check if all uploads were successful | ||
if [ "$overall_success" = false ]; then | ||
echo "One or more uploads failed" | ||
exit 1 | ||
else | ||
echo "All uploads completed successfully" | ||
fi | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: compile pyjs | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'recipes/recipes/emscripten_emscripten-wasm3/**' | ||
pull_request: | ||
paths: | ||
- 'recipes/recipes/emscripten_emscripten-wasm32/**' | ||
jobs: | ||
|
||
build_simple_with_pixi: | ||
runs-on: ubuntu-latest | ||
env: | ||
TARGET_PLATFORM: emscripten-wasm32 | ||
GITHUB_OWNER: "emscripten-forge" | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
################################################################ | ||
# SETUP | ||
################################################################ | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
################################################################ | ||
# CONFIG | ||
################################################################ | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.20.1 | ||
- run: | | ||
pixi run setup | ||
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/pyjs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Emscripten forge | ||
[![CI](https://img.shields.io/badge/emscripten_forge-docs-yellow)](https://emscripten-forge.org) | ||
[![CI](https://img.shields.io/badge/emscripten_forge-blog-pink)](https://emscripten-forge.org) | ||
|
||
[![CI](https://img.shields.io/badge/emscripten_forge-blog-pink)](https://emscripten-forge.org/blog/) | ||
|
||
|
||
Visit [emscripten-forge.org](https://emscripten-forge.org) for more information and the documentation. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
date: 2024-05-24 | ||
category: | ||
- rust | ||
|
||
authors: | ||
- derthorsten | ||
- wolfv | ||
--- | ||
|
||
# Emscripten is now a proper package | ||
|
||
So far, the emscripten package was a bit of a hack. It relied on a text file `~.emsdkdir` in the home directory which contained the directory of the emscripten installation. This was not very nice, because it was hard to build packages for several emscripten versions. | ||
|
||
But now, emscripten is a repacked package that installs emscripten into the conda environment. This allows in principle to compile packages for multiple emscripten versions. |
Oops, something went wrong.