Skip to content

fix deps

fix deps #34

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build Windows Develop
on:
push:
branches:
- 'develop'
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
os: [windows-latest]
include:
- os: windows-latest
vcpkgCommitId: '9edb1b8e590cc086563301d735cae4b6e732d2d2'
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
#- run: choco uninstall mingw -y --force
- run: choco install mingw -y --x86 --force
- name: Install libusb using Vcpkg
run: |
cd vcpkg
bootstrap-vcpkg.bat
vcpkg install libusb:x86-windows
cd..
copy D:\\a\\txlogger\\txlogger\\vcpkg\\installed\\x86-windows\\bin\libusb-1.0.dll .\
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: Install dependencies
run: |
go get .
go install fyne.io/fyne/v2/cmd/fyne@develop
- name: Build
env:
PKG_CONFIG_PATH: "D:\\a\\txlogger\\txlogger\\vcpkg\\packages\\libusb_x86-windows\\lib\\pkgconfig"
CGO_CFLAGS: "-ID:\\a\\txlogger\\txlogger\\vcpkg\\packages\\libusb_x86-windows\\include\\libusb-1.0"
GOARCH: 386
GOOS: windows
CGO_ENABLED: 1
CC: i686-w64-mingw32-gcc
CXX: i686-w64-mingw32-g++
run: |
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
$Env:PATH += ";C:\ProgramData\mingw64\mingw32\bin"
fyne package -tags combi --release