Skip to content

Commit

Permalink
Add CI job to build logcli
Browse files Browse the repository at this point in the history
  • Loading branch information
ntap-fge committed Dec 1, 2023
1 parent 01599ef commit 71af6fa
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

on:
push:
branches:
- "main"
tags:
- "v*"
pull_request:

jobs:
logcli:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.3

- name: Install package dependencies
run: |
sudo apt-get update
sudo apt-get install -y make protobuf-compiler zip
- name: Install Go dependencies
run: |
go install github.com/golang/protobuf/[email protected]
go install github.com/gogo/protobuf/[email protected]
- name: Build logcli
run: make BUILD_IN_CONTAINER=false logcli

- name: Zip logcli
run: zip --junk-paths logcli_amd64.zip cmd/logcli/logcli

- name: Upload logcli as artifact
uses: actions/upload-artifact@v3
with:
name: logcli_amd64
path: logcli_amd64.zip
retention-days: 3

0 comments on commit 71af6fa

Please sign in to comment.