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

ci: pin GitHub Actions macos runner version and build for darwin/amd64 #6721

Merged
merged 5 commits into from
Apr 26, 2024
Merged

ci: pin GitHub Actions macos runner version and build for darwin/amd64 #6721

merged 5 commits into from
Apr 26, 2024

Conversation

suzuki-shunsuke
Copy link
Contributor

@suzuki-shunsuke suzuki-shunsuke commented Apr 25, 2024

Why the changes in this PR are needed?

Close #6720

To release pre built binaries for darwin/amd64.

What are the changes in this PR?

  • Pin GitHub Actions macos runner version to macos-14
    • CPU architecture of macos-latest was changed from amd64 to arm64. To avoid the same issue, we should pin the version
  • Build and release a pre built binary for darwin/amd64

Notes to assist PR review:

Please see #6720 .

Further comments:

run: make ci-build-darwin ci-build-darwin-arm64-static
run: |
make ci-build-darwin GOARCH=amd64
make ci-build-darwin GOARCH=arm64
Copy link
Member

Choose a reason for hiding this comment

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

We can skip this in-line with previous releases and build only static binary for arm64.

Copy link
Member

Choose a reason for hiding this comment

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

Also we need to update the pull-request and post-tag workflows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your review.
Fixed.
c5654db
f76246f

Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit af741a6
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/662bd6ed3af9d600082d2f46
😎 Deploy Preview https://deploy-preview-6721--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review April 25, 2024 23:46
Comment on lines 284 to 288
- os: darwin
run: macos-latest
run: macos-13
exec: opa_darwin_amd64
arch: amd64
Copy link
Contributor Author

@suzuki-shunsuke suzuki-shunsuke Apr 25, 2024

Choose a reason for hiding this comment

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

CPU architecture of macos-13 is amd64.

Should we test opa_darwin_arm64_static too?

# Note(philipc): We only run the amd64 targets.

Copy link
Member

Choose a reason for hiding this comment

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

It would be good if we were consistent with the macos version. If we just used macos-13 then we don't need to change anything else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To test opa_darwin_amd64, we have to use macos-13.
And to test test opa_darwin_arm64_static, we have to use macos-14.

Copy link
Contributor Author

@suzuki-shunsuke suzuki-shunsuke Apr 26, 2024

Choose a reason for hiding this comment

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

I added a test of opa_darwin_arm64_static.

f41eccd

This means to run smoke test of both opa_darwin_amd64 and opa_darwin_arm64_static.

Copy link
Contributor

@johanfylling johanfylling left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Thank you! 😃

Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
@ashutosh-narkar ashutosh-narkar merged commit bf28d8e into open-policy-agent:main Apr 26, 2024
28 checks passed
@suzuki-shunsuke suzuki-shunsuke deleted the chore-build-darwin-amd64 branch April 26, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A pre built binary for darwin/amd64 wasn't released at v0.64.0
3 participants