Compare commits
3 Commits
1a8ff3cd8b
...
296120ef95
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
296120ef95 | ||
|
|
fb9b3f4ebe | ||
| 62e66751d8 |
@@ -19,10 +19,12 @@ jobs:
|
|||||||
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-linux
|
- name: build-linux
|
||||||
run: |
|
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
|
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
|
||||||
|
|
||||||
- name: build-windows
|
- name: build-windows
|
||||||
run: |
|
run: |
|
||||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw64-gcc go build -v -ldflags="-s -w -X 'main.Version=${{github.ref_name}}'" -o bin/sw1ped-mod-switcher-${{github.ref_name}}-windows-amd64.exe
|
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw64-gcc go build -v -ldflags="-s -w -X 'main.Version=${{github.ref_name}}'" -o bin/sw1ped-mod-switcher-${{github.ref_name}}-windows-amd64.exe
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ jobs:
|
|||||||
- 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
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user