File tree Expand file tree Collapse file tree 1 file changed +51
-4
lines changed Expand file tree Collapse file tree 1 file changed +51
-4
lines changed Original file line number Diff line number Diff line change 10
10
branches : [ "main" ]
11
11
12
12
jobs :
13
+ test-windows :
14
+ runs-on : windows-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Set up Go
19
+ uses : actions/setup-go@v4
20
+ with :
21
+ go-version : 1.23
22
+
23
+ - name : Install gopy
24
+ run : go install ./cmd/gopy
25
+
26
+ - name : Test init project
27
+ run : gopy init ../foo
28
+
29
+ - name : Test build project
30
+ env :
31
+ GP_INJECT_DEBUG : " 1"
32
+ run : |
33
+ Set-PSDebug -Trace 2
34
+ cd ../foo
35
+ dir .deps/python/lib/pkgconfig
36
+ gopy build -o foo.exe .
37
+ gopy exec dir
38
+ $env:PATH=".deps/python;$env:PATH"
39
+ $env:PATH
40
+ ./foo.exe
41
+
42
+ - name : Test run project
43
+ env :
44
+ GP_INJECT_DEBUG : " 1"
45
+ run : |
46
+ cd ../foo
47
+ gopy run -v .
48
+
49
+ - name : Test install project
50
+ run : |
51
+ cd ../foo
52
+ gopy install -v .
53
+
13
54
test :
14
55
continue-on-error : true
15
56
strategy :
18
59
os :
19
60
- macos-latest
20
61
- ubuntu-24.04
21
- - windows-latest
22
62
defaults :
23
63
run :
24
64
shell : bash
@@ -38,14 +78,21 @@ jobs:
38
78
run : gopy init $HOME/foo
39
79
40
80
- name : Test build project
81
+ env :
82
+ GP_INJECT_DEBUG : " 1"
41
83
run : |
84
+ set -x
42
85
cd $HOME/foo
43
- gopy build -o foo.out .
44
- ./foo.out
86
+ gopy exec env
87
+ ls $HOME/foo/.deps/python/lib/pkgconfig
88
+ gopy build -o foo .
89
+ gopy exec ls -lh
90
+ ./foo
45
91
46
92
- name : Test run project
93
+ env :
94
+ GP_INJECT_DEBUG : " 1"
47
95
run : |
48
- export GP_INJECT_DEBUG=1
49
96
cd $HOME/foo
50
97
gopy run -v .
51
98
You can’t perform that action at this time.
0 commit comments