ci: export CUDA paths in cuda-check so cudarc build.rs finds nvcc
Some checks failed
build-prerelease / Build cortex binary (push) Blocked by required conditions
CI / Format (push) Successful in 34s
build-prerelease / Resolve version stamps (push) Successful in 41s
CI / Clippy (push) Failing after 1m7s
CI / Test (push) Failing after 56s
build-prerelease / Build neuron-blackwell (push) Has been cancelled
build-prerelease / Build neuron-ampere (push) Has been cancelled
build-prerelease / Build neuron-ada (push) Has been cancelled
build-prerelease / Package cortex RPM (push) Has been cancelled
build-prerelease / Package helexa-neuron-ada RPM (push) Has been cancelled
build-prerelease / Package helexa-neuron-ampere RPM (push) Has been cancelled
build-prerelease / Package helexa-neuron-blackwell RPM (push) Has been cancelled
build-prerelease / Publish to rpm.lair.cafe (unstable) (push) Has been cancelled
CI / CUDA type-check (push) Has been cancelled
CI / Build cortex SRPM (push) Has been cancelled
CI / Build neuron SRPM (push) Has been cancelled
CI / Publish cortex to COPR (push) Has been cancelled
CI / Publish neuron to COPR (push) Has been cancelled
CI / Bump version in source (push) Has been cancelled
Some checks failed
build-prerelease / Build cortex binary (push) Blocked by required conditions
CI / Format (push) Successful in 34s
build-prerelease / Resolve version stamps (push) Successful in 41s
CI / Clippy (push) Failing after 1m7s
CI / Test (push) Failing after 56s
build-prerelease / Build neuron-blackwell (push) Has been cancelled
build-prerelease / Build neuron-ampere (push) Has been cancelled
build-prerelease / Build neuron-ada (push) Has been cancelled
build-prerelease / Package cortex RPM (push) Has been cancelled
build-prerelease / Package helexa-neuron-ada RPM (push) Has been cancelled
build-prerelease / Package helexa-neuron-ampere RPM (push) Has been cancelled
build-prerelease / Package helexa-neuron-blackwell RPM (push) Has been cancelled
build-prerelease / Publish to rpm.lair.cafe (unstable) (push) Has been cancelled
CI / CUDA type-check (push) Has been cancelled
CI / Build cortex SRPM (push) Has been cancelled
CI / Build neuron SRPM (push) Has been cancelled
CI / Publish cortex to COPR (push) Has been cancelled
CI / Publish neuron to COPR (push) Has been cancelled
CI / Bump version in source (push) Has been cancelled
act launches step shells without sourcing /etc/profile, so the gitea_runner user's PATH lacks /usr/local/cuda-13.0/bin. cudarc's build.rs panics with ENOENT on `nvcc --version` under the neuron crate's cuda-version-from-build-system feature. build-prerelease.yml already does this export — mirror it here. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -126,6 +126,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: cargo check --features cuda (with retry)
|
- name: cargo check --features cuda (with retry)
|
||||||
run: |
|
run: |
|
||||||
|
# act launches the step shell without /etc/profile, so the
|
||||||
|
# gitea_runner user's inherited PATH lacks /usr/local/cuda-13.0/bin.
|
||||||
|
# cudarc's build.rs:157 shells out to `nvcc --version` (because
|
||||||
|
# the neuron crate enables cuda-version-from-build-system) and
|
||||||
|
# panics with ENOENT if nvcc isn't resolvable. build-prerelease.yml
|
||||||
|
# does the same export — keep them in sync.
|
||||||
|
export PATH="/usr/local/cuda-13.0/bin:${PATH}"
|
||||||
|
export LD_LIBRARY_PATH="/usr/local/cuda-13.0/targets/x86_64-linux/lib:/usr/local/cuda-13.0/lib64:${LD_LIBRARY_PATH:-}"
|
||||||
|
export LIBRARY_PATH="/usr/local/cuda-13.0/targets/x86_64-linux/lib:/usr/local/cuda-13.0/lib64:${LIBRARY_PATH:-}"
|
||||||
for attempt in 1 2 3; do
|
for attempt in 1 2 3; do
|
||||||
echo "::group::cuda-check attempt ${attempt}"
|
echo "::group::cuda-check attempt ${attempt}"
|
||||||
if cargo check -p neuron --features cuda --all-targets; then
|
if cargo check -p neuron --features cuda --all-targets; then
|
||||||
|
|||||||
Reference in New Issue
Block a user