Skip to content

Commit d2a7ed8

Browse files
committed
update
1 parent 5e383b5 commit d2a7ed8

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

.github/workflows/windows.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ jobs:
2525
- uses: actions/[email protected]
2626
with:
2727
submodules: recursive
28-
29-
#- run: choco uninstall mingw -y --force
30-
#- run: choco install mingw -y --x86 --force
31-
32-
#- name: Install libusb using Vcpkg
33-
# run: |
34-
# cd vcpkg
35-
# bootstrap-vcpkg.bat
36-
# vcpkg install libusb:x86-windows
37-
# cd..
38-
# copy D:\\a\\txlogger\\txlogger\\vcpkg\\installed\\x86-windows\\bin\libusb-1.0.dll .\
3928

4029
- name: Set up Go
4130
uses: actions/setup-go@v6
@@ -45,20 +34,14 @@ jobs:
4534
- name: Install dependencies
4635
run: |
4736
go get .
48-
go install fyne.io/fyne/v2/cmd/fyne@develop
37+
go install fyne.io/tools/cmd/fyne@latest
4938
.\setup_build_env.ps1
5039
5140
- name: Build
5241
env:
53-
#PKG_CONFIG_PATH: "D:\\a\\txlogger\\txlogger\\vcpkg\\packages\\libusb_x86-windows\\lib\\pkgconfig"
54-
#CGO_CFLAGS: "-ID:\\a\\txlogger\\txlogger\\vcpkg\\packages\\libusb_x86-windows\\include\\libusb-1.0"
55-
GOARCH: amd64 #386
56-
GOOS: windows
57-
CGO_ENABLED: 1
58-
#CC: i686-w64-mingw32-gcc
59-
#CXX: i686-w64-mingw32-g++
42+
FOO: "BAR"
6043
run: |
61-
fyne package --release
44+
.\build.ps1 -txlogger
6245
#run: |
6346
# Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
6447
# $Env:PATH += ";C:\ProgramData\mingw64\mingw32\bin"

build.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ if ($release) {
3535
$env:CGO_ENABLED = "1"
3636
$env:GOGC = "100"
3737
$env:CC = "clang.exe"
38-
$env:CXX = "clang.exe"
38+
$env:CXX = "clang++.exe"
3939

4040
$current_path = Get-Location
4141

42+
$env:PATH += ';$current_path\llvm-mingw\bin'
43+
4244
if ($cangateway) {
4345
Write-Output "Building cangateway.exe"
4446
$includes = @(

0 commit comments

Comments
 (0)