Skip to content

Commit f65f99e

Browse files
authored
Merge pull request #249 from kcl-lang/refactor-kcl-lib-0.12.0
refactor kcl lib 0.12.0
2 parents 46791fe + ac60231 commit f65f99e

File tree

220 files changed

+101684
-96583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+101684
-96583
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN yum -y install git
99

1010
RUN yum -y install python3
1111

12-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.83.0
12+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.88.0
1313

1414
ENV PATH="/root/.cargo/bin:${PATH}"
1515

.github/workflows/c-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install Rust
3737
uses: actions-rs/toolchain@v1
3838
with:
39-
toolchain: 1.83
39+
toolchain: 1.88
4040
override: true
4141
components: clippy, rustfmt
4242
- name: Build

.github/workflows/cpp-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install Rust
4242
uses: actions-rs/toolchain@v1
4343
with:
44-
toolchain: 1.81
44+
toolchain: 1.88
4545
override: true
4646
components: clippy, rustfmt
4747
- name: Build

.github/workflows/dotnet-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Install Rust
7070
uses: actions-rs/toolchain@v1
7171
with:
72-
toolchain: 1.83
72+
toolchain: 1.88
7373
override: true
7474
components: clippy, rustfmt
7575
- name: Setup linux-aarch_64 rust target
@@ -124,7 +124,7 @@ jobs:
124124
- name: Install Rust
125125
uses: actions-rs/toolchain@v1
126126
with:
127-
toolchain: 1.83
127+
toolchain: 1.88
128128
override: true
129129
components: clippy, rustfmt
130130

@@ -176,4 +176,4 @@ jobs:
176176
if: "startsWith(github.ref, 'refs/tags/')"
177177
run: |
178178
cd dotnet/KclLib/bin/Release
179-
dotnet nuget push KclLib.0.11.2.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
179+
dotnet nuget push KclLib.0.12.0.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

.github/workflows/java-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Install rust nightly toolchain
6161
uses: actions-rs/toolchain@v1
6262
with:
63-
toolchain: 1.83
63+
toolchain: 1.88
6464
override: true
6565
components: clippy, rustfmt
6666

.github/workflows/kotlin-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Install rust nightly toolchain
6161
uses: actions-rs/toolchain@v1
6262
with:
63-
toolchain: 1.83
63+
toolchain: 1.88
6464
override: true
6565
components: clippy, rustfmt
6666

.github/workflows/lua-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Rust
3838
uses: actions-rs/toolchain@v1
3939
with:
40-
toolchain: 1.83
40+
toolchain: 1.88
4141
override: true
4242
components: clippy, rustfmt
4343
- name: Build

.github/workflows/nodejs-test.yaml

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,21 @@ jobs:
3232
- name: Install rust toolchain
3333
uses: actions-rs/toolchain@v1
3434
with:
35-
toolchain: 1.81
35+
toolchain: 1.88
3636
override: true
3737
components: clippy, rustfmt
3838

3939
- uses: pnpm/action-setup@v4
4040
with:
41-
version: 8
41+
version: 10
4242

4343
- name: Setup node
4444
uses: actions/setup-node@v6
4545
with:
46-
node-version: '18'
47-
cache: pnpm
48-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
46+
node-version: '22'
4947

5048
- name: Install dependencies
51-
run: pnpm install --no-save --frozen-lockfile
49+
run: pnpm i
5250

5351
- name: Check format
5452
run: pnpm exec prettier --check .
@@ -74,7 +72,13 @@ jobs:
7472
-e NAPI_TARGET=x86_64-unknown-linux-gnu \
7573
-w /build/nodejs \
7674
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian \
77-
bash -c "corepack prepare pnpm@9.15.4 --activate && pnpm build"
75+
bash -c "corepack prepare pnpm@9.15.4 --activate &&
76+
rustup update 1.88 &&
77+
rustup default 1.88 &&
78+
cargo --version &&
79+
cargo clean &&
80+
cargo update &&
81+
pnpm build"
7882
cd nodejs
7983
# change owner to current user
8084
sudo chown -R 1001:121 *.node
@@ -86,8 +90,13 @@ jobs:
8690
-w /build/nodejs \
8791
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 \
8892
bash -c "set -e &&
93+
rustup update 1.88 &&
94+
rustup default 1.88 &&
8995
rustup target add aarch64-unknown-linux-gnu &&
9096
corepack prepare pnpm@9.15.4 --activate &&
97+
cargo --version &&
98+
cargo clean &&
99+
cargo update &&
91100
pnpm build --target aarch64-unknown-linux-gnu &&
92101
aarch64-unknown-linux-gnu-strip *.node"
93102
cd nodejs
@@ -105,15 +114,14 @@ jobs:
105114
- uses: actions/checkout@v5
106115
- uses: pnpm/action-setup@v4
107116
with:
108-
version: 8
117+
version: 10
109118
- name: Setup node
110119
uses: actions/setup-node@v6
111120
with:
112-
node-version: '18'
113-
cache: pnpm
114-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
121+
node-version: '22'
122+
115123
- name: Install dependencies
116-
run: pnpm install --no-save --frozen-lockfile
124+
run: pnpm i
117125
- name: Build
118126
shell: bash
119127
working-directory: .
@@ -146,15 +154,14 @@ jobs:
146154
- uses: actions/checkout@v5
147155
- uses: pnpm/action-setup@v4
148156
with:
149-
version: 8
157+
version: 10
150158
- name: Setup node
151159
uses: actions/setup-node@v6
152160
with:
153-
node-version: '18'
154-
cache: pnpm
155-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
161+
node-version: '22'
162+
156163
- name: Install dependencies
157-
run: pnpm install --no-save --frozen-lockfile
164+
run: pnpm i
158165
- name: Build
159166
shell: bash
160167
run: ${{ matrix.settings.build }}
@@ -196,15 +203,14 @@ jobs:
196203
- uses: actions/checkout@v5
197204
- uses: pnpm/action-setup@v4
198205
with:
199-
version: 8
206+
version: 10
200207
- name: Setup node
201208
uses: actions/setup-node@v6
202209
with:
203-
node-version: '18'
204-
cache: pnpm
205-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
210+
node-version: '22'
211+
206212
- name: Install dependencies
207-
run: pnpm install --no-save --frozen-lockfile
213+
run: pnpm i
208214
- name: Build
209215
run: ${{ matrix.settings.build }}
210216
shell: bash
@@ -229,16 +235,14 @@ jobs:
229235
- uses: actions/checkout@v5
230236
- uses: pnpm/action-setup@v4
231237
with:
232-
version: 8
238+
version: 10
233239
- name: Setup node
234240
uses: actions/setup-node@v6
235241
with:
236-
node-version: "18"
237-
cache: pnpm
238-
cache-dependency-path: "nodejs/pnpm-lock.yaml"
242+
node-version: "22"
239243

240244
- name: Install dependencies
241-
run: pnpm install --no-save --frozen-lockfile
245+
run: pnpm i
242246

243247
- name: Download all artifacts
244248
uses: actions/download-artifact@v6

.github/workflows/rust-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install rust nightly toolchain
3232
uses: actions-rs/toolchain@v1
3333
with:
34-
toolchain: 1.83
34+
toolchain: 1.88
3535
override: true
3636
components: clippy, rustfmt
3737
- name: Rust code test

.github/workflows/swift-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
- name: Install Rust
4444
uses: actions-rs/toolchain@v1
4545
with:
46-
toolchain: 1.83
46+
toolchain: 1.88
4747
override: true
4848
components: clippy, rustfmt
4949
- name: Setup Swift toolchain
5050
uses: swift-actions/setup-swift@v2
5151
with:
52-
swift-version: 5
52+
swift-version: 6
5353
- name: Build and run tests
5454
run: make test

0 commit comments

Comments
 (0)