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 Github Workflows #2

Merged
merged 1 commit into from
Jan 27, 2022
Merged

Fix Github Workflows #2

merged 1 commit into from
Jan 27, 2022

Conversation

DomBlack
Copy link
Contributor

@DomBlack DomBlack commented Jan 25, 2022

This PR fixes the Github workflows since the refactor of this project. The updated workflows now also creates Github releases. For example this call to the workflow resulted in this release. It was given the version parameter of 1.17 and it downloaded the latest Go 1.17.x release; patched it; and released it on this repo.

This PR also adds more descriptions to the patch files to explain what each patch file is doing

@DomBlack DomBlack force-pushed the fix-github-workflows branch 19 times, most recently from 1976b11 to fa948fe Compare January 25, 2022 18:43
This commit fixes the Github workflows to work with the new system
@DomBlack DomBlack force-pushed the fix-github-workflows branch from fa948fe to 616a063 Compare January 25, 2022 18:59
@DomBlack DomBlack marked this pull request as ready for review January 25, 2022 18:59
@DomBlack DomBlack requested a review from eandre January 25, 2022 18:59
# This step gets the exact version of Go we're releasing (including minor), so if we give the input as `1.17` this might return `encore-go1.17.5`.
- name: 'Read the version of Go we built'
id: encore_go_version
run: echo "::set-output name=version::$(go run . --read-built-version)"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note; I did this via the main.go file so it works on Windows as well as MacOS & Linux (and doesn't need us to write separate powershell code vs bash code)

cat checksums.txt

- name: 'Publish release'
uses: DomBlack/[email protected]
Copy link
Contributor Author

@DomBlack DomBlack Jan 25, 2022

Choose a reason for hiding this comment

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

I created a fork of meeDamian/github-release and applied this PR which fixes a SSL reset issue with the current main release.

run: |
cd ${{needs.build.outputs.built_version}}-windows_amd64
tar -xzf ${{needs.build.outputs.built_version}}-windows_amd64.tar.gz
zip -r ${{needs.build.outputs.built_version}}-windows_amd64.zip encore-go
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created a zip version just to be nicer to Windows users who might not be used to working with tar.gz files

allow_override: true
prerelease: ${{ github.event.inputs.prerelease }}
gzip: false
files: Linux_x86-64.tar.gz Windows_x86-64.tar.gz Windows_x86-64.zip macOS_arm64.tar.gz macOS_x86-64.tar.gz checksums.txt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went with these file names rather than the Go ARCH names so it's harder to mistakenly get an AMD64 vs ARM64 build.

@DomBlack DomBlack merged commit 782a0df into main Jan 27, 2022
@DomBlack DomBlack deleted the fix-github-workflows branch January 27, 2022 10:06
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