Merge pull request 'develop' (#4) from develop into master
Some checks failed
Build and Artifact Vulture / build (push) Failing after 44s

Reviewed-on: #4
This commit is contained in:
s1d3sw1ped
2024-03-10 06:54:54 +00:00
3 changed files with 9 additions and 7 deletions

View File

@@ -18,7 +18,9 @@ jobs:
with:
go-version-file: 'go.mod'
- name: setup-dependencies
run: apt install mingw-w64 gcc
run: |
apt update
apt install mingw-w64 gcc
- name: build-linux
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC=gcc go build -v -ldflags="-s -w -X 'main.Version=${{github.ref_name}}'" -o bin/sw1ped-mod-switcher-${{github.ref_name}}-linux-amd64

View File

@@ -19,8 +19,8 @@ jobs:
with:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt install mingw-w64 gcc
run: |-
apt install mingw-w64 gcc
- name: Build
run: go build -v ./...
- name: Run Tests
@@ -28,9 +28,9 @@ jobs:
- name: Check Vet
run: go vet ./...
- name: Check Formatting
run: |
gofmt -s -l .
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
run: |-
gofmt -s -l .
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Check Lint
uses: golangci/golangci-lint-action@v3
with:

View File

@@ -17,7 +17,7 @@ jobs:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt install mingw-w64 gcc
apt install mingw-w64 gcc
- name: release-build-linux
run: GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 's1d3sw1ped/vulture/config.BuildVersion=${{github.ref_name}}'" -o bin/vulture-${{github.ref_name}}-linux-amd64
- name: release-build-windows