From b0873cb83d043107d4d647f8e02fc64c1a2ae5c0 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Mon, 9 Dec 2024 10:37:11 +0000 Subject: [PATCH 1/3] Add tree --- pixi.toml | 2 +- recipes/recipes_emscripten/tree/build.sh | 17 +++++++++ recipes/recipes_emscripten/tree/recipe.yaml | 41 +++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 recipes/recipes_emscripten/tree/build.sh create mode 100644 recipes/recipes_emscripten/tree/recipe.yaml diff --git a/pixi.toml b/pixi.toml index faeb152ea..cc9688b2f 100644 --- a/pixi.toml +++ b/pixi.toml @@ -12,7 +12,7 @@ platforms = ["osx-arm64", "osx-64", "linux-64"] ############################################ [feature.feature_rattler_build] [feature.feature_rattler_build.dependencies] -rattler-build = ">= 0.18.2" +rattler-build = ">=0.18.2" python = "3.11.*" typer = "*" curl = "*" diff --git a/recipes/recipes_emscripten/tree/build.sh b/recipes/recipes_emscripten/tree/build.sh new file mode 100644 index 000000000..b4a70a1a5 --- /dev/null +++ b/recipes/recipes_emscripten/tree/build.sh @@ -0,0 +1,17 @@ +export CONFIG_LDFLAGS="\ + -Os \ + --minify=0 \ + -sALLOW_MEMORY_GROWTH=1 \ + -sEXPORTED_RUNTIME_METHODS=FS,ENV,getEnvStrings,TTY \ + -sFORCE_FILESYSTEM=1 \ + -sMODULARIZE=1 \ + " + +emmake make \ + EXEEXT=.js \ + CFLAGS="$CFLAGS -Os" \ + LDFLAGS="$LDFLAGS $CONFIG_LDFLAGS" + +mkdir -p $PREFIX/bin +cp tree $PREFIX/bin/tree.js +cp tree.wasm $PREFIX/bin/ diff --git a/recipes/recipes_emscripten/tree/recipe.yaml b/recipes/recipes_emscripten/tree/recipe.yaml new file mode 100644 index 000000000..080580796 --- /dev/null +++ b/recipes/recipes_emscripten/tree/recipe.yaml @@ -0,0 +1,41 @@ +context: + name: tree + version: 2.2.1 + +package: + name: ${{ name }} + version: ${{ version }} + +source: + url: http://oldmanprogrammer.net/tar/${{ name }}/${{ name }}-${{ version }}.tgz + sha256: 68ac45dc78c0c311ada06200ffc3c285e74223ba208061f8d15ffac25e44b2ec + +build: + number: 0 + +requirements: + build: + - ${{ compiler("c") }} + - make + +tests: + - script: + - test -f $PREFIX/bin/tree.js + - test -f $PREFIX/bin/tree.wasm + - script: | + OUTPUT=$(run_modularized $PREFIX/bin/tree.js --version) + if [[ "$OUTPUT" != "tree v2.2.1 © 1996 - 2024 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro" ]]; then + echo "Unexpected output: $OUTPUT" + exit 1 + fi + requirements: + build: + - run_modularized >= 0.1.2 + +about: + license: GPL-2.0-only + license_file: LICENSE + +extra: + recipe-maintainers: + - ianthomas23 From c0941599613e7fd5640dfd9235b68fdd518a9497 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Mon, 9 Dec 2024 11:18:09 +0000 Subject: [PATCH 2/3] Remove EXEEXT --- recipes/recipes_emscripten/tree/build.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/recipes_emscripten/tree/build.sh b/recipes/recipes_emscripten/tree/build.sh index b4a70a1a5..d58c2e7a3 100644 --- a/recipes/recipes_emscripten/tree/build.sh +++ b/recipes/recipes_emscripten/tree/build.sh @@ -8,7 +8,6 @@ export CONFIG_LDFLAGS="\ " emmake make \ - EXEEXT=.js \ CFLAGS="$CFLAGS -Os" \ LDFLAGS="$LDFLAGS $CONFIG_LDFLAGS" From 070bdb1b7b92f84eff4a705b372f072434fe4363 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Tue, 10 Dec 2024 16:23:11 +0000 Subject: [PATCH 3/3] Temporarily disable run_with_pixi workflow --- .github/workflows/run_with_pixi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/run_with_pixi.yaml b/.github/workflows/run_with_pixi.yaml index aa70dbaa3..ca69e2851 100644 --- a/.github/workflows/run_with_pixi.yaml +++ b/.github/workflows/run_with_pixi.yaml @@ -13,6 +13,7 @@ on: jobs: build_simple_with_pixi: + if: false runs-on: ubuntu-latest env: TARGET_PLATFORM: emscripten-wasm32