Skip to content

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

Merged
EtienneM merged 3 commits into
masterfrom
fix/734/windows_build
Oct 5, 2022
Merged

EtienneM merged 3 commits into
masterfrom
fix/734/windows_build

Conversation

@EtienneM

@EtienneM EtienneM commented Sep 30, 2022 •

Copy link
Copy Markdown
Member

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


on:
push:
on: [push]

Copy link
Copy Markdown
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 enabled auto-merge September 30, 2022 16:48
@EtienneM
EtienneM requested review from curzolapierre and removed request for curzolapierre September 30, 2022 16:49

@curzolapierre curzolapierre left a comment

Copy link
Copy Markdown
Member

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 thread .github/workflows/publish.yml Outdated
Comment on lines +62 to +64
- name: List files in the repository
run: |
ls ${{ github.workspace }}/dist

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@curzolapierre curzolapierre left a comment

Copy link
Copy Markdown
Member

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