File tree Expand file tree Collapse file tree 1 file changed +45
-12
lines changed
Expand file tree Collapse file tree 1 file changed +45
-12
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 -x
34+ cd ../foo
35+ ls .deps/python/lib/pkgconfig
36+ .deps/tiny-pkg-config/pkg-config --libs python3-embed
37+ .deps/tiny-pkg-config/pkg-config --cflags python3-embed
38+ gopy build -o foo.exe .
39+ gopy exec ls -lh
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
@@ -31,37 +71,30 @@ jobs:
3171 with :
3272 go-version : 1.23
3373
34- - name : Test env
35- run : echo $PATH
36-
37- - name : Test env on powershell
38- shell : powershell
39- run : echo $env:PATH
40-
4174 - name : Install gopy
4275 run : go install ./cmd/gopy
4376
4477 - name : Test init project
4578 run : gopy init $HOME/foo
4679
4780 - name : Test build project
81+ env :
82+ GP_INJECT_DEBUG : " 1"
4883 run : |
4984 set -x
5085 cd $HOME/foo
5186 gopy exec env
52- export `gopy exec env | grep PKG_CONFIG_PATH`
53- env | grep PKG_CONFIG_PATH
5487 ls $HOME/foo/.deps/python/lib/pkgconfig
5588 $HOME/foo/.deps/tiny-pkg-config/pkg-config --libs python3-embed
5689 $HOME/foo/.deps/tiny-pkg-config/pkg-config --cflags python3-embed
5790 gopy build -o foo.exe .
5891 gopy exec ls -lh
59- export GP_INJECT_DEBUG=1
6092 ./foo.exe
6193
6294 - name : Test run project
95+ env :
96+ GP_INJECT_DEBUG : " 1"
6397 run : |
64- export GP_INJECT_DEBUG=1
6598 cd $HOME/foo
6699 gopy run -v .
67100
You can’t perform that action at this time.
0 commit comments