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

Fix cross-platform build for simple-game-server #2613

Merged

Conversation

markmandel
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

kind bug

/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

Fixes:

  • Run go mod tidy otherwise failure to compile
  • Fix building on amd64
  • Fix target for building manifest appropriately.

Which issue(s) this PR fixes:

Work on #2216

Special notes for your reviewer:

Once this is merged, I can build the image and push (I tested with an image in my test project's registry).

Fixes:
* Run `go mod tidy` otherwise failure to compile
* Fix building on amd64
* Fix target for building manifest appropriately.

Work on googleforgames#2216
@markmandel markmandel added kind/bug These are bugs. area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. labels Jun 7, 2022
@markmandel markmandel added this to the 1.24.0 milestone Jun 7, 2022
@markmandel markmandel requested a review from roberthbailey June 7, 2022 01:22
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 87060f55-ee83-4470-b39b-e7a87e2219c3

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2613/head:pr_2613 && git checkout pr_2613
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.24.0-4a7e8bc-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 90f0cd2e-25ac-4dc1-9be7-96c958054b43

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2613/head:pr_2613 && git checkout pr_2613
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.24.0-89dc5dc-amd64

@@ -121,7 +120,7 @@ ensure-windows-buildx:
build-linux-image-amd64:
cd $(root_path) && docker build -f $(project_path)Dockerfile --tag=$(server_tag_linux_amd64) .
build-linux-image-arm64:
cd $(root_path) && docker build -f $(project_path)Dockerfile --platform linux/arm64 --tag=$(server_tag_linux_arm64) .
cd $(root_path) && docker buildx build --platform linux/arm64 -f $(project_path)Dockerfile $(DOCKER_BUILD_ARGS) --tag=$(server_tag_linux_arm64) .
Copy link
Contributor

Choose a reason for hiding this comment

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

my bad I forgot to enable buildx :s

endif
ifeq ($(WITH_ARM64), 1)
push: push-linux-image-arm64
endif
-DOCKER_CLI_EXPERIMENTAL=enabled docker manifest rm $(server_tag)
Copy link
Member Author

Choose a reason for hiding this comment

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

@Ludea - you previously had docker manifest annotate --os.version $(WINDOWS_VERSIONS) - but I'm not sure what it does, and we didn't have it anywhere else, so it was just easier to remove it.

Does it do anything important 😁?

Copy link
Member Author

Choose a reason for hiding this comment

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

Also, just so you know - I rearranged this, because the command between target declarations don't run -- you actually can't do a if conditional around commands in a makefile, you can only change top level declarations (like add more dependencies).

Copy link
Contributor

Choose a reason for hiding this comment

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

you previously had docker manifest annotate --os.version $(WINDOWS_VERSIONS) - but I'm not sure what it does, and we didn't have it anywhere else, so it was just easier to remove it.

I had it because of this comment cb7c28c#diff-6f4dc5b6a00ecf8904eece1a3f411736a2ae6bb76457b93b92b2360f2099060dL64

Copy link
Member Author

Choose a reason for hiding this comment

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

Aaah. I think it's fine without it, but I guess we will see 😄

@google-oss-prow google-oss-prow bot added the lgtm label Jun 7, 2022
@roberthbailey roberthbailey merged commit c9acaa3 into googleforgames:main Jun 7, 2022
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markmandel, roberthbailey

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [markmandel,roberthbailey]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@markmandel markmandel deleted the feature/arm-simple-game-server branch June 7, 2022 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. kind/bug These are bugs. lgtm size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants