should be working builds
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Test Vulture
|
||||
name: build and run tests
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
runs-on: ubuntu-latest
|
||||
@@ -18,21 +18,29 @@ jobs:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: setup-dependencies
|
||||
- name: setup dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
- name: Run Tests
|
||||
- name: build
|
||||
run: |
|
||||
VERSION=${{github.ref_name}}
|
||||
BUILD=${{github.run_number}}
|
||||
GOOS=linux
|
||||
GOARCH=amd64
|
||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||
CGO_ENABLED=1
|
||||
CC=gcc
|
||||
fyne package --appVersion=${VERSION} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
|
||||
- name: run tests
|
||||
run: go test -v ./...
|
||||
- name: Check Vet
|
||||
run: go vet ./...
|
||||
- name: Check Formatting
|
||||
- name: check formatting
|
||||
run: |-
|
||||
gofmt -s -l .
|
||||
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
|
||||
- name: Check Lint
|
||||
- name: check lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: latest
|
||||
Reference in New Issue
Block a user