From d2bfa03104c8fc9c02d8334e4d7b7db01a1b309f Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" Date: Thu, 9 Mar 2023 15:55:14 +0100 Subject: [PATCH] chore(CI): use nightly rust --- .github/workflows/compiler_benchmark.yml | 2 +- .github/workflows/compiler_build_and_test_gpu.yml | 2 +- .github/workflows/compiler_macos_build_and_test.yml | 3 ++- .github/workflows/concrete_cpu_test.yml | 9 ++++++--- .github/workflows/ml_benchmark_subset.yml | 2 +- compilers/concrete-compiler/compiler/CMakeLists.txt | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compiler_benchmark.yml b/.github/workflows/compiler_benchmark.yml index 662a8e5f2..37e1d9ea1 100644 --- a/.github/workflows/compiler_benchmark.yml +++ b/.github/workflows/compiler_benchmark.yml @@ -86,7 +86,7 @@ jobs: - name: Install rust uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: nightly override: true - name: Build compiler benchmarks diff --git a/.github/workflows/compiler_build_and_test_gpu.yml b/.github/workflows/compiler_build_and_test_gpu.yml index 88f1d1d7d..285a7b19c 100644 --- a/.github/workflows/compiler_build_and_test_gpu.yml +++ b/.github/workflows/compiler_build_and_test_gpu.yml @@ -66,7 +66,7 @@ jobs: - name: Install rust uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: nightly override: true - name: Create build dir diff --git a/.github/workflows/compiler_macos_build_and_test.yml b/.github/workflows/compiler_macos_build_and_test.yml index e442c56a4..a35f26744 100644 --- a/.github/workflows/compiler_macos_build_and_test.yml +++ b/.github/workflows/compiler_macos_build_and_test.yml @@ -31,7 +31,8 @@ jobs: - name: Install rust uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: nightly + override: true - name: Install Deps run: | diff --git a/.github/workflows/concrete_cpu_test.yml b/.github/workflows/concrete_cpu_test.yml index e39544149..519a5473a 100644 --- a/.github/workflows/concrete_cpu_test.yml +++ b/.github/workflows/concrete_cpu_test.yml @@ -21,7 +21,9 @@ jobs: - name: Rust install uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: nightly + override: true + components: rustfmt, clippy - name: Download cargo cache uses: Swatinem/rust-cache@v2 @@ -54,7 +56,7 @@ jobs: - name: Tests run: | cd backends/concrete-cpu - cargo test --no-fail-fast --all-targets + cargo test --no-fail-fast --all-targets --features=nightly - name: Zig install run: | @@ -75,7 +77,8 @@ jobs: - name: Rust install uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: nightly + override: true - name: Download cargo cache uses: Swatinem/rust-cache@v2 diff --git a/.github/workflows/ml_benchmark_subset.yml b/.github/workflows/ml_benchmark_subset.yml index dfcd4ec16..c9e32a891 100644 --- a/.github/workflows/ml_benchmark_subset.yml +++ b/.github/workflows/ml_benchmark_subset.yml @@ -66,7 +66,7 @@ jobs: - name: Install rust uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: nightly override: true - name: Build compiler and ML benchmarks diff --git a/compilers/concrete-compiler/compiler/CMakeLists.txt b/compilers/concrete-compiler/compiler/CMakeLists.txt index fc4d94ace..25408c13c 100644 --- a/compilers/concrete-compiler/compiler/CMakeLists.txt +++ b/compilers/concrete-compiler/compiler/CMakeLists.txt @@ -117,7 +117,7 @@ ExternalProject_Add( DOWNLOAD_COMMAND "" CONFIGURE_COMMAND "" OUTPUT "${CONCRETE_CPU_STATIC_LIB}" BUILD_ALWAYS true - BUILD_COMMAND cargo build --release ${CONCRETE_CPU_FEATURES} + BUILD_COMMAND cargo +nightly build --release ${CONCRETE_CPU_FEATURES} --features=nightly BINARY_DIR "${CONCRETE_CPU_DIR}" INSTALL_COMMAND "" LOG_BUILD ON