Skip to content

Commit

Permalink
chore: use rust 1.79
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Sep 14, 2024
1 parent aa87551 commit 2ea31b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/windows_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,28 @@ 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

- run: clang --version
- 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
Expand Down
1 change: 1 addition & 0 deletions kclvm/cmd/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2ea31b1

Please sign in to comment.