Skip to content

Commit

Permalink
Do not enable CUDA on Windows because compilation fails for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Sep 9, 2024
1 parent d7be33c commit d42735d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@ jobs:
- name: cargo clippy
run: |
cargo -Zgitoxide -Zgit clippy --locked --all-targets --features runtime-benchmarks -- -D warnings
if: runner.os == 'macOS'
# TODO: Windows should be compiled with CUDA as well once compilation succeeds
if: runner.os == 'macOS' || runner.os == 'Windows'

- name: cargo clippy
run: |
cargo -Zgitoxide -Zgit clippy --locked --all-targets --features runtime-benchmarks,cuda -- -D warnings
if: runner.os == 'Linux' || runner.os == 'Windows'
if: runner.os == 'Linux'

cargo-docs:
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-20.04-x86-64"]' || '"ubuntu-22.04"') }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,14 @@ jobs:
- name: Build farmer
run: |
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer
if: runner.os == 'macOS' || !startsWith(matrix.build.target, 'x86_64')
# TODO: Windows should be compiled with CUDA as well once compilation succeeds
if: runner.os == 'macOS' || runner.os == 'Windows' || !startsWith(matrix.build.target, 'x86_64')

- name: Build farmer
run: |
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer --features cuda
# TODO: We don't configure CUDA for cross-compilation purposes, hence only x86-64 for now
if: (runner.os == 'Linux' || runner.os == 'Windows') && startsWith(matrix.build.target, 'x86_64')
if: (runner.os == 'Linux') && startsWith(matrix.build.target, 'x86_64')

- name: Build node
run: |
Expand Down

0 comments on commit d42735d

Please sign in to comment.