-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build/test with latest Go 1.22 for arm64 rather than x86
Signed-off-by: Chad Wilson <[email protected]>
- Loading branch information
1 parent
f1a76ff
commit 1e0b556
Showing
10 changed files
with
82 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Release on PR Merge | ||
|
||
on: deployment | ||
|
||
jobs: | ||
deploy: | ||
if: github.event.deployment.environment == 'production' | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GAUGEBOT_GITHUB_TOKEN }}' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: Setup git | ||
run: | | ||
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" | ||
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" | ||
- name: Build artifacts | ||
run: | | ||
go run build/make.go --all-platforms | ||
go run build/make.go --all-platforms --distro | ||
- name: update | ||
run: | | ||
cd deploy | ||
if [ -z "$version" ]; then | ||
version=$(cd deploy && ls screenshot* | head -1 | sed "s/\.[^\.]*$//" | sed "s/screenshot-//" | sed | sed "s/-[a-z]*\.[a-z0-9_]*$//"); | ||
fi | ||
echo "VERSION=$version" >> $GITHUB_ENV | ||
echo "---------------------------" | ||
echo "Updating release v$version" | ||
echo "---------------------------" | ||
echo -e "Gauge Screenshot v$version\n\n" > desc.txt | ||
release_description=$(ruby -e "$(curl -sSfL https://github.com/getgauge/gauge/raw/master/build/create_release_text.rb)" getgauge gauge_screenshot) | ||
echo "$release_description" >> desc.txt | ||
gh release create --title "Gauge Screenshot v${version}" --notes-file ./desc.txt "v${version}" deploy/* | ||
- name: Update metadata in gauge-repository | ||
run: | | ||
git clone https://github.com/getgauge/gauge-repository.git | ||
cd gauge-repository | ||
python update_metadata.py screenshot $VERSION | ||
commit_message=$(echo -e "Update screenshot to v$VERSION") | ||
git commit -am "$commit_message" | ||
git push "https://$GITHUB_ACTOR:[email protected]/getgauge/gauge-repository.git" master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module github.com/getgauge/gauge_screenshot | ||
|
||
go 1.13 | ||
go 1.22 | ||
|
||
require ( | ||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 | ||
github.com/TheTitanrain/w32 v0.0.0-20180517000239-4f5cfb03fabf | ||
github.com/BurntSushi/xgb v0.0.0-20210121224620-deaf085860bc | ||
github.com/TheTitanrain/w32 v0.0.0-20200114052255-2654d97dbd3d | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc= | ||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= | ||
github.com/TheTitanrain/w32 v0.0.0-20180517000239-4f5cfb03fabf h1:FPsprx82rdrX2jiKyS17BH6IrTmUBYqZa/CXT4uvb+I= | ||
github.com/TheTitanrain/w32 v0.0.0-20180517000239-4f5cfb03fabf/go.mod h1:peYoMncQljjNS6tZwI9WVyQB3qZS6u79/N3mBOcnd3I= | ||
github.com/BurntSushi/xgb v0.0.0-20210121224620-deaf085860bc h1:7D+Bh06CRPCJO3gr2F7h1sriovOZ8BMhca2Rg85c2nk= | ||
github.com/BurntSushi/xgb v0.0.0-20210121224620-deaf085860bc/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= | ||
github.com/TheTitanrain/w32 v0.0.0-20200114052255-2654d97dbd3d h1:2xp1BQbqcDDaikHnASWpVZRjibOxu7y9LhAv04whugI= | ||
github.com/TheTitanrain/w32 v0.0.0-20200114052255-2654d97dbd3d/go.mod h1:peYoMncQljjNS6tZwI9WVyQB3qZS6u79/N3mBOcnd3I= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
|
||
package version | ||
|
||
var Version = "0.1.0" | ||
var Version = "0.2.0" |