From 958377042a0e4c858eb2b2a78c5aa7cb8c218f77 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 8 Dec 2023 15:55:37 +0000 Subject: [PATCH] CI: fix clean build --- .github/workflows/test.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 256f2eb..183ee84 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,20 +57,20 @@ jobs: # in-place for pytest (-e . doesn't work yet for scikit-build-core) run: | pip install toml - python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["build-system"]["requires"]), end="")' \ - | xargs -0 pip install + python -c 'import toml; c=toml.load("pyproject.toml") + print("\0".join(c["build-system"]["requires"] + ["cmake>=" + c["tool"]["scikit-build"]["cmake"]["minimum-version"]), end="")' \ + | xargs -0 pip install ninja pip install --no-build-isolation --no-deps -t . -U -v . -Ccmake.define.CUVEC_DEBUG=1 git restore cuvec/src - python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["project"]["dependencies"]), end="")' \ - | xargs -0 pip install - python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["project"]["optional-dependencies"]["dev"]), end="")' \ - | xargs -0 pip install + python -c 'import toml; c=toml.load("pyproject.toml") + print("\0".join(c["project"]["dependencies"] + c["project"]["optional-dependencies"]["dev"]), end="")' \ + | xargs -0 pip install - run: pytest - uses: codecov/codecov-action@v3 - name: compile -Wall run: | git clean -Xdf - pip install build ninja + pip install build python -m build -n -w \ -Ccmake.define.CMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-cast-function-type" cuda: @@ -90,20 +90,20 @@ jobs: # in-place for pytest (-e . doesn't work yet for scikit-build-core) run: | pip install toml - python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["build-system"]["requires"]), end="")' \ - | xargs -0 pip install + python -c 'import toml; c=toml.load("pyproject.toml") + print("\0".join(c["build-system"]["requires"] + ["cmake>=" + c["tool"]["scikit-build"]["cmake"]["minimum-version"]), end="")' \ + | xargs -0 pip install ninja pip install --no-build-isolation --no-deps -t . -U -v . -Ccmake.define.CUVEC_DEBUG=1 git restore cuvec/src - python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["project"]["dependencies"]), end="")' \ - | xargs -0 pip install - python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["project"]["optional-dependencies"]["dev"]), end="")' \ - | xargs -0 pip install + python -c 'import toml; c=toml.load("pyproject.toml") + print("\0".join(c["project"]["dependencies"] + c["project"]["optional-dependencies"]["dev"]), end="")' \ + | xargs -0 pip install - run: pytest - uses: codecov/codecov-action@v3 - name: compile -Wall run: | git clean -Xdf - pip install build ninja + pip install build python -m build -n -w \ -Ccmake.define.CMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-cast-function-type" \ -Ccmake.define.CMAKE_CUDA_ARCHITECTURES=all