Skip to content

Commit

Permalink
Add static checks for ppc64le
Browse files Browse the repository at this point in the history
  • Loading branch information
Amulyam24 committed Dec 13, 2023
1 parent d1f9161 commit a438f7f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/static-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
- "ubuntu-20.04"
- "arm-no-k8s"
- "s390x"
- "ppc64le"
runs-on: ${{ matrix.instance }}
steps:
- name: Adjust a permission for repo
Expand Down
4 changes: 2 additions & 2 deletions src/dragonball/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

include ../../utils.mk

ifeq ($(ARCH), s390x)
ifeq ($(ARCH), $(filter $(ARCH), s390x ppc64le))
default build check test clippy vendor:
@echo "s390x not support currently"
@echo "$(ARCH) is not support currently"
exit 0
else

Expand Down
2 changes: 1 addition & 1 deletion src/tools/agent-ctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include ../../../utils.mk

ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
endif

.DEFAULT_GOAL := default
default: build
Expand Down
5 changes: 4 additions & 1 deletion src/tools/kata-ctl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ lazy_static = "1.2"
[target.'cfg(target_arch = "s390x")'.dependencies]
reqwest = { version = "0.11", default-features = false, features = ["json", "blocking", "native-tls"] }

[target.'cfg(not(target_arch = "s390x"))'.dependencies]
[target.'cfg(target_arch = "powerpc64le")'.dependencies]
reqwest = { version = "0.11", default-features = false, features = ["json", "blocking", "native-tls"] }

[target.'cfg(not(any(target_arch = "s390x",target_arch="powerpc64le")))'.dependencies]
reqwest = { version = "0.11", default-features = false, features = ["json", "blocking", "rustls-tls"] }

[dev-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions src/tools/kata-ctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

include ../../../utils.mk

ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif

PROJECT_NAME = Kata Containers
PROJECT_URL = https://github.com/kata-containers
PROJECT_COMPONENT = kata-ctl
Expand Down
2 changes: 1 addition & 1 deletion src/tools/runk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include ../../../utils.mk

ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
endif

TARGET = runk
TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET)
Expand Down
2 changes: 1 addition & 1 deletion src/tools/trace-forwarder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include ../../../utils.mk

ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
endif

.DEFAULT_GOAL := default
default: build
Expand Down

0 comments on commit a438f7f

Please sign in to comment.