Compare commits
5 Commits
5f71a5d9b8
...
b3edcc46e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3edcc46e6 | ||
|
|
be8256466d | ||
| f1e9961bdd | |||
| e75f77be7f | |||
| a5655abe76 |
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user