Skip to content

Bump github.com/spf13/viper from 1.18.1 to 1.18.2 #114

Bump github.com/spf13/viper from 1.18.1 to 1.18.2

Bump github.com/spf13/viper from 1.18.1 to 1.18.2 #114

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
tags:
- '*.*.*' # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
branches: [ master ]
jobs:
generate:
name: Generate cross-platform builds
runs-on: ubuntu-latest
steps:
- name: Install libsensors4-dev (needed for gosensors testing)
run: sudo apt-get install -y libsensors4-dev
- name: Checkout the repository
uses: actions/checkout@v4
- name: Test
run: go test -v ./...
- name: Build
run: go build -v ./...
- name: Genereat build files
run: |
GOOS="linux"
GOARCH="amd64"
filename="$GOOS-$GOARCH"
go build -o ./dist/keyboard-backlight-daemon-$filename -buildmode "exe" main.go
- name: Genereat build files
run: |
GOOS="linux"
GOARCH="arm64"
filename="$GOOS-$GOARCH"
go build -o ./dist/keyboard-backlight-daemon-$filename -buildmode "exe" main.go
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/keyboard-backlight-daemon-linux-amd64
dist/keyboard-backlight-daemon-linux-arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}