Skip to content

Commit

Permalink
fix: windows CI and rust version to 1.80
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Sep 14, 2024
1 parent 59883ae commit 7e00c00
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-macos-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt
- name: Set up python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt
- name: Code format check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mingw_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_compiler_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt
- name: Rust code format check
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt
- name: Compiler_base rust unit test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt
- name: Code format check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wasm_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
toolchain: 1.80
override: true
components: clippy, rustfmt

Expand Down
6 changes: 3 additions & 3 deletions docs/dev_guide/2.quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Using a docker image is our recommended way, of course, you can also configure y
#### macOS and OS X

- `git`
- `Rust 1.79+`
- `Rust 1.80+`
- `LLVM 12` (Optional, only for the LLVM backend and release)
- `Python 3.7+` (Optional, only for integration tests)

Expand All @@ -63,7 +63,7 @@ export PATH=<your LLVM 12 install location>/bin:$PATH
#### Linux

- `git`
- `Rust 1.79+`
- `Rust 1.80+`
- `LLVM 12` (Optional, only for the LLVM backend and release)
- `Python3 Building Dependencies` (Optional, only for integration tests)

Expand Down Expand Up @@ -106,7 +106,7 @@ ln -sf /usr/bin/wasm-ld-12 /usr/bin/wasm-ld
#### Windows

- `git`
- `Rust 1.79+`
- `Rust 1.80+`
- `LLVM 12` (Optional, only for the LLVM backend and release)
- `Python 3.7+` (Only for integration tests)

Expand Down
10 changes: 8 additions & 2 deletions kclvm/query/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ const CARGO_FILE_PATH: &str = env!("CARGO_MANIFEST_DIR");

fn get_test_dir(sub: String) -> PathBuf {
let mut cargo_file_path = PathBuf::from(CARGO_FILE_PATH);
cargo_file_path.push("src/test_data");
cargo_file_path.push(sub);
cargo_file_path.push("src");
cargo_file_path.push("test_data");
// Split unix and windows path
for part in sub.split("/") {
for p in part.split("\\") {
cargo_file_path.push(p);
}
}
cargo_file_path
}

Expand Down

0 comments on commit 7e00c00

Please sign in to comment.