Skip to content

Commit

Permalink
Testing release build
Browse files Browse the repository at this point in the history
  • Loading branch information
racerxdl committed Feb 28, 2021
1 parent 2b9a8ff commit cad6b76
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Arm64

on:
push:
tags:
- v*

jobs:

build-arm64:
runs-on: ubuntu-latest
container: racerxdl/gocross:arm64
steps:
- uses: actions/checkout@v2

- name: Build
run: |
cd cmd
go build -o lms_tcp_arm64
- uses: actions/upload-artifact@v1
name: "Upload artifacts"
with:
name: lms_tcp_armhf
path: cmd/lms_tcp_arm64

- name: Test
run: go test -v ./...

- name: Upload files to a GitHub release
uses: svenstaro/upload-release-action@2.2.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true
file: cmd/lms_tcp_arm64
37 changes: 37 additions & 0 deletions .github/workflows/release-armhf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release armhf

on:
push:
tags:
- v*

jobs:

build-armhf:
runs-on: ubuntu-latest
container: racerxdl/gocross:armhf
steps:
- uses: actions/checkout@v2

- name: Build
run: |
cd cmd
go build -o lms_tcp_armhf
- uses: actions/upload-artifact@v1
name: "Upload artifacts"
with:
name: lms_tcp_armhf
path: cmd/lms_tcp_armhf

- name: Test
run: go test -v ./...

- name: Upload files to a GitHub release
uses: svenstaro/upload-release-action@2.2.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true
file: cmd/lms_tcp_armhf
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Go

on:
push:
tags:
- v*

jobs:

build-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Set up Limesuite
run: |
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo apt-get -y update
sudo apt-get install limesuite liblimesuite-dev
- name: Build
run: |
cd cmd
go build -o lms_tcp_amd64
- uses: actions/upload-artifact@v1
name: "Upload artifacts"
with:
name: lms_tcp_armhf
path: cmd/lms_tcp_amd64

- name: Test
run: go test -v ./...

- name: Upload files to a GitHub release
uses: svenstaro/upload-release-action@2.2.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true
file: cmd/lms_tcp_amd64

0 comments on commit cad6b76

Please sign in to comment.