Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Jan 18, 2025
1 parent e853fbb commit f2d57fd
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
if: runner.os == 'Windows'

- name: CUDA toolchain (Ubuntu)
run: sudo apt-get install -y --no-install-recommends nvidia-cuda-toolkit
run: sudo apt-get install -y --no-install-recommends nvidia-cuda-toolkit g++-11
if: runner.os == 'Linux'

- name: Install Protoc
Expand All @@ -149,7 +149,8 @@ jobs:
- name: Build app (Linux, modern, CUDA)
# CXX for CUDA
env:
CXX: g++-12
# TODO: g++-12 is not compiling on aarch64 for now: https://bugs.launchpad.net/ubuntu/+source/mumax3/+bug/2032624
CXX: g++-11
RUSTFLAGS: ${{ matrix.build.modern-rustflags }}
run: |
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --features cuda
Expand All @@ -173,22 +174,11 @@ jobs:
- name: Build app (Linux, normal, CUDA)
# CXX for CUDA
env:
CXX: g++-12
# TODO: g++-12 is not compiling on aarch64 for now: https://bugs.launchpad.net/ubuntu/+source/mumax3/+bug/2032624
CXX: g++-11
RUSTFLAGS: ${{ matrix.build.rustflags }}
# TODO: CUDA not compiling on aarch64 for now: https://bugs.launchpad.net/ubuntu/+source/mumax3/+bug/2032624
run: |
case "$(uname -p)" in
"x86_64")
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --features cuda
;;
"aarch64")
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production
;;
*)
echo "Unexpected architecture $(uname -p)"
exit 1
;;
esac
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --features cuda
if: runner.os == 'Linux'

- name: Build app (Windows, normal, CUDA)
Expand Down

0 comments on commit f2d57fd

Please sign in to comment.