3
3
on : [push, pull_request]
4
4
5
5
env :
6
- cache-version : v11
6
+ cache-version : v12
7
7
8
8
jobs :
9
9
14
14
test-and-build-linux :
15
15
strategy :
16
16
matrix :
17
- go-version : [1.18 .x]
17
+ go-version : [1.20 .x]
18
18
platform : [ubuntu-20.04]
19
19
qtversion : [5.15.6]
20
20
runs-on : ${{ matrix.platform }}
@@ -130,7 +130,7 @@ jobs:
130
130
test-and-build-macos-11 :
131
131
strategy :
132
132
matrix :
133
- go-version : [1.18 .x]
133
+ go-version : [1.20 .x]
134
134
platform : [macos-11]
135
135
qtversion : [5.15.2]
136
136
runs-on : ${{ matrix.platform }}
@@ -206,7 +206,7 @@ jobs:
206
206
test-windows-mingw :
207
207
strategy :
208
208
matrix :
209
- go-version : [1.18.10 ]
209
+ go-version : [1.20.5 ]
210
210
platform : [windows-latest]
211
211
runs-on : ${{ matrix.platform }}
212
212
env :
@@ -251,22 +251,22 @@ jobs:
251
251
run : |
252
252
export PATH=/c/hostedtoolcache/windows/go/${{ matrix.go-version }}/x64/bin/:$PATH
253
253
cd /d/a/goneovim/goneovim/src/github.com/${{ github.repository }}
254
- go get -v github.com/therecipe /qt
255
- go get github.com/therecipe /qt/internal/[email protected] 20200904063919-c0c124a5770d
256
- go get github.com/therecipe /qt/internal/binding/files/docs/5.12.0
257
- go get github.com/therecipe /qt/internal/binding/files/docs/5.13.0
258
- go get github.com/therecipe /qt/internal/cmd/[email protected] 20200904063919-c0c124a5770d
259
- go install -v -tags=no_env github.com/therecipe /qt/cmd/...
254
+ go get -v github.com/akiyosi /qt
255
+ go get github.com/akiyosi /qt/internal/[email protected] 20230718095223-7e4e923f23fa
256
+ go get github.com/akiyosi /qt/internal/binding/files/docs/5.12.0
257
+ go get github.com/akiyosi /qt/internal/binding/files/docs/5.13.0
258
+ go get github.com/akiyosi /qt/internal/cmd/[email protected] 20230718095223-7e4e923f23fa
259
+ go install -v -tags=no_env github.com/akiyosi /qt/cmd/...
260
260
go mod vendor
261
- git clone https://github.com/therecipe /env_windows_amd64_513.git vendor/github.com/therecipe /env_windows_amd64_513
261
+ git clone https://github.com/akiyosi /env_windows_amd64_513.git vendor/github.com/akiyosi /env_windows_amd64_513
262
262
263
263
- uses : actions/cache@v2
264
264
id : cache-qt-bindings-windows-test
265
265
with :
266
266
path : |
267
- ${{ github.workspace }}\src\github.com\${{ github.repository }}\vendor\github.com\therecipe \qt\*
268
- !${{ github.workspace }}\src\github.com\${{ github.repository }}\vendor\github.com\therecipe \qt\.git
269
- key : test -qtbindings-windows-test-${{ env.cache-version }}
267
+ ${{ github.workspace }}\src\github.com\${{ github.repository }}\vendor\github.com\akiyosi \qt\*
268
+ !${{ github.workspace }}\src\github.com\${{ github.repository }}\vendor\github.com\akiyosi \qt\.git
269
+ key : cache -qtbindings-windows-test-${{ env.cache-version }}
270
270
271
271
- name : Generate Qt bindings
272
272
if : ${{ steps.cache-qt-bindings-windows-test.outputs.cache-hit != 'true' }}
@@ -296,7 +296,7 @@ jobs:
296
296
build-windows-mingw :
297
297
strategy :
298
298
matrix :
299
- go-version : [1.18.10 ]
299
+ go-version : [1.20.5 ]
300
300
platform : [windows-latest]
301
301
runs-on : ${{ matrix.platform }}
302
302
env :
@@ -347,30 +347,48 @@ jobs:
347
347
with :
348
348
fetch-depth : 0
349
349
path : ${{ github.workspace }}\${{ github.repository }}
350
-
350
+
351
351
- name : Copy checkout repogitory
352
352
shell : msys2 {0}
353
353
run : |
354
354
mkdir -p /c/${{ github.repository }}
355
355
ls -l /d/a/goneovim/goneovim/${{ github.repository }}
356
356
cp -pR /d/a/goneovim/goneovim/${{ github.repository }}/* /c/${{ github.repository }}/
357
357
cp -pR /d/a/goneovim/goneovim/${{ github.repository }}/.* /c/${{ github.repository }}/
358
+ mkdir -p /c/src/github.com/${{ github.repository }}
359
+ cp -pR /d/a/goneovim/goneovim/${{ github.repository }}/* /c/src/github.com/${{ github.repository }}/
358
360
ls -l /c/${{ github.repository }}
361
+ ls -l /c/src/github.com/${{ github.repository }}
359
362
360
363
- name : Get Qt binding for Go
361
364
shell : msys2 {0}
362
365
run : |
363
366
export PATH=/c/hostedtoolcache/windows/go/${{ matrix.go-version }}/x64/bin/:$PATH
364
367
cd /c/${{ github.repository }}
365
- go get -v github.com/therecipe /qt
366
- go get github.com/therecipe /qt/internal/[email protected] 20200904063919-c0c124a5770d
367
- go get github.com/therecipe /qt/internal/binding/files/docs/5.12.0
368
- go get github.com/therecipe /qt/internal/binding/files/docs/5.13.0
369
- go get github.com/therecipe /qt/internal/cmd/[email protected] 20200904063919-c0c124a5770d
370
- go install -v -tags=no_env github.com/therecipe /qt/cmd/...
368
+ go get -v github.com/akiyosi /qt
369
+ go get github.com/akiyosi /qt/internal/[email protected] 20230718095223-7e4e923f23fa
370
+ go get github.com/akiyosi /qt/internal/binding/files/docs/5.12.0
371
+ go get github.com/akiyosi /qt/internal/binding/files/docs/5.13.0
372
+ go get github.com/akiyosi /qt/internal/cmd/[email protected] 20230718095223-7e4e923f23fa
373
+ go install -v -tags=no_env github.com/akiyosi /qt/cmd/...
371
374
go mod vendor
372
- git clone https://github.com/therecipe/env_windows_amd64_513.git vendor/github.com/therecipe/env_windows_amd64_513
375
+ git clone https://github.com/akiyosi/env_windows_amd64_513.git vendor/github.com/akiyosi/env_windows_amd64_513
376
+
377
+ - uses : actions/cache@v2
378
+ id : cache-qt-bindings-windows-build
379
+ with :
380
+ path : |
381
+ /c/${{ github.repository }}\vendor\github.com\akiyosi\qt\*
382
+ !/c/${{ github.repository }}\vendor\github.com\akiyosi\qt\.git
383
+ key : cache-qtbindings-windows-build-${{ env.cache-version }}
373
384
385
+ - name : Generate Qt bindings
386
+ if : ${{ steps.cache-qt-bindings-windows-build.outputs.cache-hit != 'true' }}
387
+ shell : msys2 {0}
388
+ run : |
389
+ export PATH=/c/hostedtoolcache/windows/go/${{ matrix.go-version }}/x64/bin/:$PATH
390
+ cd /c/${{ github.repository }}
391
+ $(go env GOPATH)/bin/qtsetup -test=false
374
392
375
393
- name : Get dependencies
376
394
shell : msys2 {0}
@@ -379,7 +397,7 @@ jobs:
379
397
cd /c/${{ github.repository }}
380
398
make deps
381
399
382
- # ## https://github.com/therecipe /qt/issues/657
400
+ # ## https://github.com/akiyosi /qt/issues/657
383
401
# - name: Test
384
402
# shell: msys2 {0}
385
403
# run: |
@@ -503,7 +521,7 @@ jobs:
503
521
env :
504
522
GOROOT : ${{ github.workspace }}\go-1.18
505
523
run : |
506
- ${{ github.workspace }}\go-1.18\bin\go.exe get -v -tags=no_env github.com/therecipe /qt/cmd/...
524
+ ${{ github.workspace }}\go-1.18\bin\go.exe get -v -tags=no_env github.com/akiyosi /qt/cmd/...
507
525
508
526
- name : Install Go 1.13
509
527
run : |
@@ -558,8 +576,8 @@ jobs:
558
576
# id: cache-qt-bindings-windows
559
577
# with:
560
578
# path: |
561
- # ${{ github.workspace }}\src\github.com\therecipe \qt\*
562
- # !${{ github.workspace }}\src\github.com\therecipe \qt\.git
579
+ # ${{ github.workspace }}\src\github.com\akiyosi \qt\*
580
+ # !${{ github.workspace }}\src\github.com\akiyosi \qt\.git
563
581
# key: ${{ matrix.qtversion }}-qtbindings-windows-${{ env.cache-version }}
564
582
565
583
- name : Generate Qt bindings
@@ -571,15 +589,15 @@ jobs:
571
589
${{ github.workspace }}\bin\qtsetup.exe prep windows
572
590
${{ github.workspace }}\bin\qtsetup.exe check windows
573
591
${{ github.workspace }}\bin\qtsetup.exe generate windows
574
- sed -i '9,14d' ${{ github.workspace }}\src\github.com\therecipe \qt\core\core.cpp
575
- sed -i '661,666d' ${{ github.workspace }}\src\github.com\therecipe \qt\internal\binding\templater\template_cpp.go
592
+ sed -i '9,14d' ${{ github.workspace }}\src\github.com\akiyosi \qt\core\core.cpp
593
+ sed -i '661,666d' ${{ github.workspace }}\src\github.com\akiyosi \qt\internal\binding\templater\template_cpp.go
576
594
${{ github.workspace }}\bin\qtsetup.exe install windows
577
595
578
596
- name : Get dependencies
579
597
run : |
580
598
go get -v -d github.com/${{ github.repository }}/...
581
- cd ${{ github.workspace }}\src\github.com\${{ github.repository }}\cmd\goneovim
582
- ${{ github.workspace }}\bin\qtmoc.exe
599
+ cd ${{ github.workspace }}\src\github.com\${{ github.repository }}
600
+ ${{ github.workspace }}\bin\qtmoc.exe desktop ./cmd/goneovim
583
601
584
602
# - name: Convert to compatible sources on Qt5.12
585
603
# if: ${{ matrix.qtversion == '5.12.6' }}
@@ -625,8 +643,9 @@ jobs:
625
643
env :
626
644
QT_API : 5.13.0
627
645
run : |
628
- cd ${{ github.workspace }}\src\github.com\${{ github.repository }}\cmd\goneovim
629
- ${{ github.workspace }}\bin\qtdeploy -ldflags "-X github.com/akiyosi/goneovim/editor.Version=${{ steps.version-windows.outputs.GONEOVIM_VERSION }}" build desktop
646
+ cd ${{ github.workspace }}\src\github.com\${{ github.repository }}
647
+ go generate
648
+ ${{ github.workspace }}\bin\qtdeploy build desktop ./cmd/goneovim
630
649
Copy-Item -Force -Recurse -Path ../../runtime -Destination ./deploy/windows/
631
650
632
651
- name : Upload for windows
0 commit comments