Skip to content

Commit

Permalink
[JENKINS-70428] create binary wrappers for linux ppc64le and arm64 (#66)
Browse files Browse the repository at this point in the history
go cross compilation is available for ppc64le and arm64
name the binaries according to the os.arch value of java
requires changes in the durable-task-plugin so the correct names are found.
  • Loading branch information
mawinter69 authored Jan 18, 2023
1 parent d73d2d3 commit df81f89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ RUN CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -o ${NAME}_darwin_amd64
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -a -o ${NAME}_darwin_arm64
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o ${NAME}_linux_64
RUN CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -a -o ${NAME}_linux_32
RUN CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -a -o ${NAME}_linux_ppc64le
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -o ${NAME}_linux_aarch64
WORKDIR $BASE_DIR/cmd/windows
RUN go mod tidy
# can't test windows on linux
Expand Down
2 changes: 2 additions & 0 deletions src/Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ RUN set CGO_ENABLED=0&& set GOOS=darwin&& set GOARCH=amd64&& go build -a -o %NAM
RUN set CGO_ENABLED=0&& set GOOS=darwin&& set GOARCH=arm64&& go build -a -o %NAME%_darwin_arm64
RUN set CGO_ENABLED=0&& set GOOS=linux&& set GOARCH=amd64&& go build -a -o %NAME%_linux_64
RUN set CGO_ENABLED=0&& set GOOS=linux&& set GOARCH=386&& go build -a -o %NAME%_linux_32
RUN set CGO_ENABLED=0&& set GOOS=linux&& set GOARCH=ppc64le&& go build -a -o %NAME%_linux_ppc64le
RUN set CGO_ENABLED=0&& set GOOS=linux&& set GOARCH=arm64&& go build -a -o %NAME%_linux_aarch64
WORKDIR $BASE_DIR/cmd/windows
# RUN go mod tidy
RUN go get -modcacherw jenkinsci.org/plugins/durabletask/common
Expand Down

0 comments on commit df81f89

Please sign in to comment.