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 1010 branches : [ "main" ]
1111
1212jobs :
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+
1354 test :
1455 continue-on-error : true
1556 strategy :
1859 os :
1960 - macos-latest
2061 - ubuntu-24.04
21- - windows-latest
2262 defaults :
2363 run :
2464 shell : bash
@@ -38,14 +78,21 @@ jobs:
3878 run : gopy init $HOME/foo
3979
4080 - name : Test build project
81+ env :
82+ GP_INJECT_DEBUG : " 1"
4183 run : |
84+ set -x
4285 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
4591
4692 - name : Test run project
93+ env :
94+ GP_INJECT_DEBUG : " 1"
4795 run : |
48- export GP_INJECT_DEBUG=1
4996 cd $HOME/foo
5097 gopy run -v .
5198
You can’t perform that action at this time.
0 commit comments