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: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
- name: setup-dependencies - name: setup-dependencies
run: apt install mingw-w64 gcc run: |
apt update
apt install mingw-w64 gcc
- name: build-linux - 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 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,7 +19,7 @@ jobs:
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
- name: setup-dependencies - name: setup-dependencies
run: | run: |-
apt install mingw-w64 gcc apt install mingw-w64 gcc
- name: Build - name: Build
run: go build -v ./... run: go build -v ./...
@@ -28,7 +28,7 @@ jobs:
- name: Check Vet - name: Check Vet
run: go vet ./... run: go vet ./...
- name: Check Formatting - name: Check Formatting
run: | run: |-
gofmt -s -l . gofmt -s -l .
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Check Lint - name: Check Lint