windows build disabled for now and deps are correct on all now

This commit is contained in:
2024-03-10 01:16:34 -06:00
parent 527e04972e
commit b9379f9d66
3 changed files with 5 additions and 6 deletions

View File

@@ -19,11 +19,10 @@ jobs:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt-get update
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- 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
#- 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

View File

@@ -19,8 +19,8 @@ jobs:
with:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |-
apt install mingw-w64 gcc
run: |
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Build
run: go build -v ./...
- name: Run Tests

View File

@@ -17,7 +17,7 @@ jobs:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt install mingw-w64 gcc
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- 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