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

feat(publish): compile Windows release on Windows #806

Merged
merged 3 commits into from
Oct 5, 2022

Conversation

EtienneM
Copy link
Member

@EtienneM EtienneM commented Sep 30, 2022

With this PR, the publish action has two different jobs for the GoReleaser execution:

All these features are added as assets of a single GitHub release. You can see an example of execution on my fork: https://github.com/EtienneM/cli/releases/tag/1.25.2-beta8. One of the cons from my perspective is that we have two different files for the checksums.

Related to #734 and #735

  • Add a changelog entry in the section "To Be Released" of CHANGELOG.md no changelog entry, this is an internal change

@@ -1,7 +1,6 @@
name: Test and Release Go CLI

on:
push:
on: [push]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is just a way to write the same things with a different syntax, and I prefer this one.

@EtienneM EtienneM marked this pull request as ready for review September 30, 2022 16:48
@EtienneM EtienneM requested review from curzolapierre and removed request for curzolapierre September 30, 2022 16:49
Copy link
Member

@curzolapierre curzolapierre left a comment

Choose a reason for hiding this comment

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

I think, ./.goreleaser.yaml file needs some modification to remove windows OS support.

Comment on lines 62 to 64
- name: List files in the repository
run: |
ls ${{ github.workspace }}/dist
Copy link
Member

Choose a reason for hiding this comment

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

Is this debug?

Copy link
Member Author

Choose a reason for hiding this comment

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

oups, yes

with:
go-version-file: "go.mod"
check-latest: true
cache: true
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, what is the use of this cache property?

Copy link
Member Author

Choose a reason for hiding this comment

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

https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs

The action has a built-in functionality for caching and restoring go modules and build outputs.

It should speed up a bit the CI execution.

Copy link
Member

@curzolapierre curzolapierre left a comment

Choose a reason for hiding this comment

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

LGTM

@EtienneM EtienneM merged commit 16237f1 into master Oct 5, 2022
@EtienneM EtienneM deleted the fix/734/windows_build branch October 5, 2022 09:21
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.

2 participants