This commit is contained in:
2024-03-10 00:45:16 -06:00
parent 8e2cfc67e3
commit 62e66751d8
2 changed files with 6 additions and 3 deletions

View File

@@ -19,10 +19,12 @@ jobs:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt install mingw-w64 gcc
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
- name: build-windows
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