Skip to content

Commit a90002d

Browse files
Merge pull request #4 from liangyuanpeng/update_ci
update ci
2 parents 85a324c + a83e7d2 commit a90002d

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/ci.yml

+20-8
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,48 @@ on:
77
pull_request:
88

99
env:
10-
KIND_VERSION: v0.23.0
10+
KIND_VERSION: v0.26.0
1111

1212
jobs:
1313
test-kind-create:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.runson }}
1515
strategy:
1616
fail-fast: false
17+
#TODO 添加 kcl 版本矩阵
18+
#TODO 添加 linux arm
1719
matrix:
1820
image:
19-
- kindest/node:v1.30.2
20-
- kindest/node:v1.29.0
21-
- kindest/node:v1.28.0
21+
- kindest/node:v1.32.0
22+
- kindest/node:v1.31.0
23+
- kindest/node:v1.30.0
2224
cpcount:
2325
- 1
2426
- 3
2527
workercount:
2628
- 0
2729
- 1
2830
- 3
31+
runson:
32+
- ubuntu-latest
33+
- ubuntu-24.04-arm
2934
steps:
3035
- name: Install
3136
run: |
3237
wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash
3338
- name: install kind
3439
run: |
35-
wget https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz
36-
tar xvfz linux-amd64.tgz
40+
export ARCH_NAME=`uname -m`
41+
if [ "$ARCH_NAME" != "x86_64" ];then
42+
wget https://kind.sigs.k8s.io/dl/latest/linux-arm64.tgz
43+
tar xvfz linux-arm64.tgz
44+
rm -f linux-amd64.tgz
45+
else
46+
wget https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz
47+
tar xvfz linux-amd64.tgz
48+
rm -f linux-amd64.tgz
49+
fi
3750
chmod +x kind
3851
mv kind /usr/local/bin/
39-
rm -f linux-amd64.tgz
4052
rm -f e2e-k8s.sh
4153
#wget https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64
4254
#chmod +x kind-linux-amd64

0 commit comments

Comments
 (0)