File tree Expand file tree Collapse file tree 2 files changed +53
-9
lines changed Expand file tree Collapse file tree 2 files changed +53
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Lama2 Tests and Beta Release
2
+ on :
3
+ push :
4
+ branches :
5
+ - feature/request-time
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - name : Setup Go
14
+ uses : actions/setup-go@v3
15
+ with :
16
+ go-version : ' 1.19.x'
17
+ - name : Install dependencies
18
+ run : go mod tidy
19
+ - name : Build
20
+ run : go build -v ./...
21
+ - name : Build l2 binary
22
+ run : |
23
+ mkdir -p build
24
+ go build -o build/l2 -ldflags "-X main.version=1.6.2-beta" l2.go
25
+ - name : Test with the Go CLI
26
+ run : |
27
+ go test -v ./tests/
28
+ - name : Create Release
29
+ id : create_release
30
+ uses : actions/create-release@v1
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ with :
34
+ tag_name : v1.6.2-beta
35
+ release_name : 1.6.2-beta
36
+ draft : false
37
+ prerelease : true
38
+ - name : Upload Release Asset
39
+ uses : actions/upload-release-asset@v1
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ with :
43
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
44
+ asset_path : ./build/l2
45
+ asset_name : l2
46
+ asset_content_type : application/octet-stream
47
+
48
+ # - name: Deploy hexmos doc
49
+ # run: curl -X POST --fail -F token=${{ secrets.TRIGGER_TOKEN }} -F ref=main https://git.apps.hexmos.com/api/v4/projects/85/trigger/pipeline
Original file line number Diff line number Diff line change 1
1
name : Lama2 Tests
2
2
on : [push]
3
3
4
+
5
+
4
6
jobs :
5
7
build :
6
8
runs-on : ubuntu-latest
@@ -15,17 +17,10 @@ jobs:
15
17
run : go mod tidy
16
18
- name : Build
17
19
run : go build -v ./...
18
- - name : Build l2 binary
19
- run : |
20
- mkdir -p build
21
- go build -o build/l2 -ldflags "-X main.version=`git tag --sort=-version:refname | head -n 1`" l2.go
22
20
- name : Test with the Go CLI
23
21
run : |
22
+ go mod tidy
23
+ go build -o build/l2 -ldflags "-X main.version=`git tag --sort=-version:refname | head -n 1`" l2.go
24
24
go test -v ./tests/
25
- - name : Upload l2 binary
26
- uses : actions/upload-artifact@v3
27
- with :
28
- name : l2
29
- path : build/l2
30
25
# - name: Deploy hexmos doc
31
26
# run: curl -X POST --fail -F token=${{ secrets.TRIGGER_TOKEN }} -F ref=main https://git.apps.hexmos.com/api/v4/projects/85/trigger/pipeline
You can’t perform that action at this time.
0 commit comments