Skip to content

Implement an auto command (#2) #10

Implement an auto command (#2)

Implement an auto command (#2) #10

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
tags:
- '*'
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
go-bif-examine:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
cache: true
- name: Go tidy
run: go mod tidy
- name: Build binary
env:
CGO_ENABLED: 0
GOOS: linux
run: go build -ldflags="-X github.com/kaiiorg/go-bif-examine/pkg/util.version=${{ github.ref_name }}" -o ./bin/ ./cmd/go-bif-examine
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: go-bif-examine
path: |
./bin/go-bif-examine
if-no-files-found: error
go-bif-examine-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
cache: true
- name: Go tidy
run: go mod tidy
- name: Build binary
env:
CGO_ENABLED: 0
GOOS: linux
run: go build -ldflags="-X github.com/kaiiorg/go-bif-examine/pkg/util.version=${{ github.ref_name }}" -o ./bin/ ./cmd/go-bif-examine-cli
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: go-bif-examine-cli
path: |
./bin/go-bif-examine-cli
if-no-files-found: error
whisperer:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
cache: true
- name: Go tidy
run: go mod tidy
- name: Build binary
env:
CGO_ENABLED: 0
GOOS: linux
run: go build -ldflags="-X github.com/kaiiorg/go-bif-examine/pkg/util.version=${{ github.ref_name }}" -o ./bin/ ./cmd/whisperer
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: whisperer
path: |
./bin/whisperer
if-no-files-found: error