Skip to content

Commit cad6b76

Browse files
committed
Testing release build
1 parent 2b9a8ff commit cad6b76

File tree

3 files changed

+121
-0
lines changed

3 files changed

+121
-0
lines changed

.github/workflows/release-arm64.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release Arm64
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
10+
build-arm64:
11+
runs-on: ubuntu-latest
12+
container: racerxdl/gocross:arm64
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Build
17+
run: |
18+
cd cmd
19+
go build -o lms_tcp_arm64
20+
21+
- uses: actions/upload-artifact@v1
22+
name: "Upload artifacts"
23+
with:
24+
name: lms_tcp_armhf
25+
path: cmd/lms_tcp_arm64
26+
27+
- name: Test
28+
run: go test -v ./...
29+
30+
- name: Upload files to a GitHub release
31+
uses: svenstaro/[email protected]
32+
with:
33+
repo_token: ${{ secrets.GITHUB_TOKEN }}
34+
tag: ${{ github.ref }}
35+
overwrite: true
36+
file_glob: true
37+
file: cmd/lms_tcp_arm64

.github/workflows/release-armhf.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release armhf
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
10+
build-armhf:
11+
runs-on: ubuntu-latest
12+
container: racerxdl/gocross:armhf
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Build
17+
run: |
18+
cd cmd
19+
go build -o lms_tcp_armhf
20+
21+
- uses: actions/upload-artifact@v1
22+
name: "Upload artifacts"
23+
with:
24+
name: lms_tcp_armhf
25+
path: cmd/lms_tcp_armhf
26+
27+
- name: Test
28+
run: go test -v ./...
29+
30+
- name: Upload files to a GitHub release
31+
uses: svenstaro/[email protected]
32+
with:
33+
repo_token: ${{ secrets.GITHUB_TOKEN }}
34+
tag: ${{ github.ref }}
35+
overwrite: true
36+
file_glob: true
37+
file: cmd/lms_tcp_armhf

.github/workflows/release.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
10+
build-amd64:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.15
19+
20+
- name: Set up Limesuite
21+
run: |
22+
sudo add-apt-repository -y ppa:myriadrf/drivers
23+
sudo apt-get -y update
24+
sudo apt-get install limesuite liblimesuite-dev
25+
26+
- name: Build
27+
run: |
28+
cd cmd
29+
go build -o lms_tcp_amd64
30+
31+
- uses: actions/upload-artifact@v1
32+
name: "Upload artifacts"
33+
with:
34+
name: lms_tcp_armhf
35+
path: cmd/lms_tcp_amd64
36+
37+
- name: Test
38+
run: go test -v ./...
39+
40+
- name: Upload files to a GitHub release
41+
uses: svenstaro/[email protected]
42+
with:
43+
repo_token: ${{ secrets.GITHUB_TOKEN }}
44+
tag: ${{ github.ref }}
45+
overwrite: true
46+
file_glob: true
47+
file: cmd/lms_tcp_amd64

0 commit comments

Comments
 (0)