File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 15
15
uses : actions/setup-go@v5
16
16
with :
17
17
go-version : ' stable'
18
+ cache : false
18
19
19
20
- name : Run setup
20
21
run : bash setup.sh
23
24
run : bash tests/run_tests.sh
24
25
25
26
- name : Run build
26
- run : bash build.sh
27
+ run : bash build.sh ${{ github.ref_name }} ${{ github.sha }}
27
28
28
29
- name : Release
29
30
uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change 20
20
uses : actions/setup-go@v5
21
21
with :
22
22
go-version : ' stable'
23
+ cache : false
23
24
24
25
- name : Display Go version
25
26
run : go version
Original file line number Diff line number Diff line change 2
2
SCRIPTDIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
3
3
BUILDDIR=$SCRIPTDIR /build
4
4
5
- GIT_REV=` git rev-parse --abbrev-ref HEAD`
6
- COMMIT_HASH=" $( git rev-parse --short HEAD) "
7
5
BUILD_TIMESTAMP=$( date -u ' +%Y-%m-%dT%H:%M:%S%z' )
8
6
LDFLAGS=(
9
- " -X 'main.version=${GIT_REV} '"
10
- " -X 'main.commitHash=${COMMIT_HASH} '"
7
+ " -X 'main.version=$1 '"
8
+ " -X 'main.commitHash=$2 '"
11
9
" -X 'main.buildTime=${BUILD_TIMESTAMP} '"
12
10
)
13
11
You can’t perform that action at this time.
0 commit comments