From f2d57fddf31f53107f6c8593282fb32f73a1ed31 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Sat, 18 Jan 2025 02:22:28 +0200 Subject: [PATCH] WIP --- .github/workflows/release.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c9894b..5f66169 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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)