Skip to content

Commit 54cbf25

Browse files
committed
ci: git reset between two compilation to avoid go.mod version update error
1 parent 4d1bb77 commit 54cbf25

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/ci/run-compile-tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,42 @@ git clone https://github.com/collectd/collectd.git /tmp/collectd
1616
COLLECTD_SRC=/tmp/collectd make contribs
1717

1818
# Compile with default options
19+
git reset --hard
1920
make
21+
22+
git reset --hard
2023
make test.functionals.compile TAGS=${TAGS}
2124

2225
export CGO_CFLAGS="-I/usr/local/include/dpdk -O3 -g -std=gnu11 -m64 -pthread -march=native -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2 -DRTE_MACHINE_CPUFLAG_PCLMULQDQ -DRTE_MACHINE_CPUFLAG_RDRAND -DRTE_MACHINE_CPUFLAG_FSGSBASE -DRTE_MACHINE_CPUFLAG_F16C -include rte_config.h -Wno-deprecated-declarations"
2326
export CGO_LDFLAGS="-L/usr/local/lib"
2427

2528
# Compile with all build options supported enabled
29+
git reset --hard
2630
make WITH_DPDK=true WITH_EBPF=true WITH_VPP=true WITH_EBPF_DOCKER_BUILDER=true WITH_K8S=true WITH_ISTIO=true \
2731
WITH_HELM=true VERBOSE=true
2832

2933
# Compile Skydive for Windows
34+
git reset --hard
3035
GOOS=windows GOARCH=amd64 go build github.com/skydive-project/skydive
3136

3237
# Compile Skydive for MacOS
38+
git reset --hard
3339
GOOS=darwin GOARCH=amd64 go build github.com/skydive-project/skydive
3440

3541
# Compile profiling
42+
git reset --hard
3643
make WITH_PROF=true VERBOSE=true
3744

3845
make clean
3946

4047
# Compile all tests
48+
git reset --hard
4149
make test.functionals.compile TAGS=${TAGS} WITH_NEUTRON=true WITH_SELENIUM=true WITH_CDD=true \
4250
WITH_SCALE=true WITH_EBPF=true WITH_EBPF_DOCKER_BUILDER=true WITH_VPP=true WITH_K8S=true \
4351
WITH_ISTIO=true WITH_HELM=true
4452

4553
make clean
4654

4755
# Compile static
56+
git reset --hard
4857
make static

0 commit comments

Comments
 (0)