Skip to content

Commit

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

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

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

- name: Build node
run: |
Expand Down

0 comments on commit b882a8c

Please sign in to comment.