Repository navigation
fix(docker): patch pytantan CMakeLists to scrub AVX2 at the source #25
docker.yml
on: pull_request
Build funannotate2 image (linux/amd64)
3m 12s
Annotations
1 error and 1 warning
|
Build funannotate2 image (linux/amd64)
buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c set -eux\necho \"pytantan rebuild (cachebust=${_PT_CACHEBUST}, version=${_PT_VERSION})\"\ngit clone --depth 1 --branch \"v${_PT_VERSION}\" \\\n https://github.com/althonos/pytantan.git /tmp/build/pytantan\ncd /tmp/build/pytantan\n\n/app/.pixi/envs/default/bin/python <<'PY'\nimport pathlib, re\n\ndef strip_if_block(text, var, replacement):\n \"\"\"Remove a top-level if(<var>) ... endif() block, handling nested if().\"\"\"\n lines = text.splitlines(keepends=True)\n out = []\n i = 0\n open_re = re.compile(r'^\\s*if\\s*\\(')\n close_re = re.compile(r'^\\s*endif\\s*\\(')\n target_re = re.compile(rf'^\\s*if\\s*\\(\\s*{re.escape(var)}\\s*\\)')\n while i < len(lines):\n if target_re.match(lines[i]):\n depth = 1\n i += 1\n while i < len(lines) and depth > 0:\n if open_re.match(lines[i]):\n depth += 1\n elif close_re.match(lines[i]):\n depth -= 1\n i += 1\n if replacement:\n out.append(replacement)\n else:\n out.append(lines[i])\n i += 1\n return \"\".join(out)\n\nfor path, repl_factory in [\n (\"CMakeLists.txt\", lambda v: f\"set({v} OFF)\\n\"),\n (\"src/pytantan/platform/CMakeLists.txt\", lambda v: \"\"),\n]:\n p = pathlib.Path(path)\n src = p.read_text()\n if path == \"CMakeLists.txt\":\n src = re.sub(\n r'include\\(\"src/scripts/cmake/Find(SSE4|AVX2|NEON)\\.cmake\"\\)\\n',\n \"\", src,\n )\n for var in (\"HAVE_SSE4\", \"HAVE_AVX2\", \"HAVE_NEON\"):\n src = strip_if_block(src, var, repl_factory(var))\n p.write_text(src)\n print(f\"=== patched {path} ===\")\n print(src)\nPY\n\nCMAKE_ARGS=\"-DHAVE_SSE4:BOOL=OFF -DHAVE_AVX2:BOOL=OFF -DHAVE_NEON:BOOL=OFF\" \\\n/app/.pixi/envs/default/bin/pip install -v \\\n --no-deps --no-cache-dir --force-reinstall \\\n --config-settings=cmake.define.HAVE_SSE4=OFF \\\n --config-settings=cmake.define.HAVE_AVX2=OFF \\\n --config-settings=cmake.define.HAVE_NEON=OFF \\\n /tmp/build/pytantan\nrm -rf /root/.cache/pip\n" did not complete successfully: exit code: 1
|
|
Build funannotate2 image (linux/amd64)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, docker/build-push-action@v6, docker/metadata-action@v5, docker/setup-buildx-action@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|