File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 22
33# This script is used to build the ARM binaries and upload to the github draft release.
44# Just run this script from your Mac M1 or Linux ARM machine, if you want to build and upload the ARM binaries.
5+ # This script requires the tag to be built as an argument(eg: ./build_arm_and_upload.sh v1.4.0-rc.2 where v1.4.0-rc.2
6+ # is the tag to be built.)
57
8+ # Pull and checkout the tag
9+ git checkout main
10+ git pull
11+ git checkout $1
12+
13+ # Build from the tag
614cd fdw
715make clean
816make go
917make
10- make release
11- cd -
18+
19+ # Run the upload script
20+ ./../upload_arm_asset.sh $1
Original file line number Diff line number Diff line change 1818 fi
1919done
2020
21- # get the tag_names of draft releases
22- TAG=$( gh api -X GET /repos/{owner}/{repo}/releases -F owner=turbot -F repo=steampipe --jq ' .[] | select(.draft == true) | .tag_name' )
23-
24- # count the number of draft releases
25- COUNT=$( echo " $TAG " | wc -l | tr -d ' ' )
26-
27- if [[ " $COUNT " == " 1" ]]; then
28- gzip steampipe_postgres_fdw.so
29- mv steampipe_postgres_fdw.so.gz steampipe_postgres_fdw.so.darwin_arm64.gz
30- gh release upload ${TAG} steampipe_postgres_fdw.so.darwin_arm64.gz
31- else
32- echo " contains more than 1 draft releases"
33- fi
21+ # Zip, rename and upload the binary
22+ gzip steampipe_postgres_fdw.so
23+ mv steampipe_postgres_fdw.so.gz steampipe_postgres_fdw.so.darwin_arm64.gz
24+ gh release upload $1 steampipe_postgres_fdw.so.darwin_arm64.gz
You can’t perform that action at this time.
0 commit comments