Skip to content

Commit

Permalink
Create Release linux binaries.yml
Browse files Browse the repository at this point in the history
test
  • Loading branch information
bucketcat authored Dec 6, 2023
1 parent 11a3a96 commit 28e6ab1
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/Release linux binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: '>=1.19.2'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v ./...

- name: Install tshark as prerequisite for testing
run: sudo sh -c 'export DEBIAN_FRONTEND=noninteractive ; apt -y update && apt -y install tshark'

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

# - name: Zip Binaries
# run: zip -r binaries.zip ./path/to/your/binary1 ./path/to/your/binary2
- name: Create Tarball
run: tar -czvf binaries.tar.gz ./path/to/your/binary1 ./path/to/your/binary2

- name: Create Release and Upload Artifacts
uses: actions/create-release@v1
with:
tag_name: v0.0.1
release_name: Release v0.0.1
body: Test build and release binaries remotely.
draft: false
prerelease: false
files: |
release.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 28e6ab1

Please sign in to comment.