Skip to content

Commit 2c28f31

Browse files
committed
Improve CI workflow
1 parent cd1a6dc commit 2c28f31

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/kafka_api_bazel_build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
- main
88

99
env:
10-
KAFKA_SRC_LINK: https://dlcdn.apache.org/kafka/3.2.0/kafka_2.13-3.2.0.tgz
11-
CPU_CORE_NUM: 2
12-
LIBRDKAFKA_VERSION: 1.8.2
10+
KAFKA_SRC_LINK: https://dlcdn.apache.org/kafka/3.2.0/kafka_2.13-3.2.0.tgz
11+
CPU_CORE_NUM: 2
12+
LIBRDKAFKA_TAG: v1.8.2
1313

1414
jobs:
1515
kafka-api-bazel-build:
@@ -37,9 +37,9 @@ jobs:
3737
- name: Install Dependencies
3838
run: |
3939
# 1. Install librdkafka
40-
wget -nv https://github.com/edenhill/librdkafka/archive/v${LIBRDKAFKA_VERSION}.tar.gz
41-
tar -xzf v${LIBRDKAFKA_VERSION}.tar.gz
42-
cd librdkafka-${LIBRDKAFKA_VERSION}
40+
git clone https://github.com/edenhill/librdkafka.git
41+
cd librdkafka
42+
git reset --hard ${LIBRDKAFKA_TAG}
4343
./configure
4444
make -j${CPU_CORE_NUM} && sudo make install
4545
cd ../

.github/workflows/kafka_api_ci_tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
- main
88

99
env:
10-
KAFKA_SRC_LINK: https://dlcdn.apache.org/kafka/3.2.0/kafka_2.13-3.2.0.tgz
11-
CPU_CORE_NUM: 2
12-
LIBRDKAFKA_VERSION: 1.8.2
13-
BUILD_SUB_DIR: builds/sub-build
10+
KAFKA_SRC_LINK: https://dlcdn.apache.org/kafka/3.2.0/kafka_2.13-3.2.0.tgz
11+
CPU_CORE_NUM: 2
12+
LIBRDKAFKA_TAG: v1.8.2
13+
BUILD_SUB_DIR: builds/sub-build
1414

1515
jobs:
1616
kafka-api-tests:
@@ -130,9 +130,9 @@ jobs:
130130
fi
131131
132132
# 4. Install librdkafka
133-
wget -nv https://github.com/edenhill/librdkafka/archive/v${LIBRDKAFKA_VERSION}.tar.gz
134-
tar -xzf v${LIBRDKAFKA_VERSION}.tar.gz
135-
cd librdkafka-${LIBRDKAFKA_VERSION}
133+
git clone https://github.com/edenhill/librdkafka.git
134+
cd librdkafka
135+
git reset --hard ${LIBRDKAFKA_TAG}
136136
./configure --cxx=${BUILD_CXX}
137137
make -j${CPU_CORE_NUM} && sudo make install
138138
cd ../

0 commit comments

Comments
 (0)