File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1515 uses : actions/setup-go@v5
1616 with :
1717 go-version : ' stable'
18+ cache : false
1819
1920 - name : Run setup
2021 run : bash setup.sh
2324 run : bash tests/run_tests.sh
2425
2526 - name : Run build
26- run : bash build.sh
27+ run : bash build.sh ${{ github.ref_name }} ${{ github.sha }}
2728
2829 - name : Release
2930 uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change 2020 uses : actions/setup-go@v5
2121 with :
2222 go-version : ' stable'
23+ cache : false
2324
2425 - name : Display Go version
2526 run : go version
Original file line number Diff line number Diff line change 22SCRIPTDIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
33BUILDDIR=$SCRIPTDIR /build
44
5- GIT_REV=` git rev-parse --abbrev-ref HEAD`
6- COMMIT_HASH=" $( git rev-parse --short HEAD) "
75BUILD_TIMESTAMP=$( date -u ' +%Y-%m-%dT%H:%M:%S%z' )
86LDFLAGS=(
9- " -X 'main.version=${GIT_REV} '"
10- " -X 'main.commitHash=${COMMIT_HASH} '"
7+ " -X 'main.version=$1 '"
8+ " -X 'main.commitHash=$2 '"
119 " -X 'main.buildTime=${BUILD_TIMESTAMP} '"
1210)
1311
You can’t perform that action at this time.
0 commit comments