From 2ea31b161e04ebd79b157bc48cb9e16bd300aba7 Mon Sep 17 00:00:00 2001 From: peefy Date: Sat, 14 Sep 2024 17:49:07 +0800 Subject: [PATCH] chore: use rust 1.79 Signed-off-by: peefy --- .github/workflows/windows_test.yaml | 19 +++++++++++++------ kclvm/cmd/src/tests.rs | 1 + 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows_test.yaml b/.github/workflows/windows_test.yaml index 9d97cf31f..96395dff8 100644 --- a/.github/workflows/windows_test.yaml +++ b/.github/workflows/windows_test.yaml @@ -18,8 +18,15 @@ jobs: with: go-version: 1.21 + - name: Install rust nightly toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.79 + override: true + components: clippy, rustfmt + - name: Install KCL - run: go install kcl-lang.io/cli/cmd/kcl@v0.10.0-rc.1 + run: go install kcl-lang.io/cli/cmd/kcl@main - uses: ilammy/msvc-dev-cmd@v1 @@ -27,12 +34,12 @@ jobs: - run: cargo --version # Install LLVM-12 - - run: Invoke-WebRequest -Uri https://github.com/kcl-lang/llvm-package-windows/releases/download/v12.0.1/LLVM-12.0.1-win64.7z -OutFile C:/LLVM-12.0.1-win64.7z - - run: Get-FileHash -Algorithm MD5 C:/LLVM-12.0.1-win64.7z # md5: 3fcf77f82c6c3ee650711439b20aebe5 - - run: 7z x -y C:/LLVM-12.0.1-win64.7z -o"C:/LLVM" - - run: Remove-Item C:/LLVM-12.0.1-win64.7z + # - run: Invoke-WebRequest -Uri https://github.com/kcl-lang/llvm-package-windows/releases/download/v12.0.1/LLVM-12.0.1-win64.7z -OutFile C:/LLVM-12.0.1-win64.7z + # - run: Get-FileHash -Algorithm MD5 C:/LLVM-12.0.1-win64.7z # md5: 3fcf77f82c6c3ee650711439b20aebe5 + # - run: 7z x -y C:/LLVM-12.0.1-win64.7z -o"C:/LLVM" + # - run: Remove-Item C:/LLVM-12.0.1-win64.7z - - run: echo "C:/LLVM/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + # - run: echo "C:/LLVM/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append # Build kclvm CLI - run: .\scripts\build-windows\build.ps1 diff --git a/kclvm/cmd/src/tests.rs b/kclvm/cmd/src/tests.rs index 6c0b28ed8..743812ad0 100644 --- a/kclvm/cmd/src/tests.rs +++ b/kclvm/cmd/src/tests.rs @@ -171,6 +171,7 @@ fn test_external_cmd_invalid() { } } +#[test] // All the unit test cases in [`test_run_command`] can not be executed concurrently. fn test_run_command() { test_run_command_with_import();