Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Arm64 and Arm arch support #385

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ sed -i "s/devel$/${RELEASE_VERSION}/g" ${RELEASE_DIR}/kustomization.yaml
sed -i "s/devel$/${RELEASE_VERSION}/g" ${ROOT}/config/base/config-info.yaml

# Apply kustomiation + build images + generate yaml
kubectl kustomize ${RELEASE_DIR} | ko resolve --platform "linux/amd64,linux/ppc64le,linux/s390x" -P -f - -t ${RELEASE_VERSION} > ${RELEASE_DIR}/release.yaml
kubectl kustomize ${RELEASE_DIR} | ko resolve --platform "linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x" -P -f - -t ${RELEASE_VERSION} > ${RELEASE_DIR}/release.yaml
28 changes: 12 additions & 16 deletions tekton/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,65 +52,61 @@ spec:
workspaces:
- name: source
workspace: ws
- name: unit-tests-ppc64le
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed these unit tests because we can't run unit tests on a different platform/arch.

- name: build
runAfter: [checkout]
taskRef:
name: golang-test
name: golang-build
params:
- name: package
value: $(params.package)
- name: GOARCH
value: ppc64le
- name: flags
value: "-cover -v"
workspaces:
- name: source
workspace: ws
- name: unit-tests-s390x
- name: build-ppc64le
runAfter: [checkout]
taskRef:
name: golang-test
name: golang-build
params:
- name: package
value: $(params.package)
- name: GOARCH
value: s390x
- name: flags
value: "-cover -v"
value: ppc64le
workspaces:
- name: source
workspace: ws
- name: build
- name: build-s390x
runAfter: [checkout]
taskRef:
name: golang-build
params:
- name: package
value: $(params.package)
- name: GOARCH
value: s390x
workspaces:
- name: source
workspace: ws
- name: build-ppc64le
- name: build-arm64
runAfter: [checkout]
taskRef:
name: golang-build
params:
- name: package
value: $(params.package)
- name: GOARCH
value: ppc64le
value: arm64
workspaces:
- name: source
workspace: ws
- name: build-s390x
- name: build-arm
runAfter: [checkout]
taskRef:
name: golang-build
params:
- name: package
value: $(params.package)
- name: GOARCH
value: s390x
value: arm
workspaces:
- name: source
workspace: ws
Expand Down