File tree Expand file tree Collapse file tree 1 file changed +44
-16
lines changed
Expand file tree Collapse file tree 1 file changed +44
-16
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+ cd ../foo
34+ dir .deps/python/lib/pkgconfig
35+ gopy build -o foo.exe .
36+ gopy exec dir
37+ ./foo.exe
38+
39+ - name : Test run project
40+ env :
41+ GP_INJECT_DEBUG : " 1"
42+ run : |
43+ cd ../foo
44+ gopy run -v .
45+
46+ - name : Test install project
47+ run : |
48+ cd ../foo
49+ gopy install -v .
50+
1351 test :
1452 continue-on-error : true
1553 strategy :
1856 os :
1957 - macos-latest
2058 - ubuntu-24.04
21- - windows-latest
2259 defaults :
2360 run :
2461 shell : bash
@@ -31,37 +68,28 @@ jobs:
3168 with :
3269 go-version : 1.23
3370
34- - name : Test env
35- run : echo $PATH
36-
37- - name : Test env on powershell
38- shell : powershell
39- run : echo $env:PATH
40-
4171 - name : Install gopy
4272 run : go install ./cmd/gopy
4373
4474 - name : Test init project
4575 run : gopy init $HOME/foo
4676
4777 - name : Test build project
78+ env :
79+ GP_INJECT_DEBUG : " 1"
4880 run : |
4981 set -x
5082 cd $HOME/foo
5183 gopy exec env
52- export `gopy exec env | grep PKG_CONFIG_PATH`
53- env | grep PKG_CONFIG_PATH
5484 ls $HOME/foo/.deps/python/lib/pkgconfig
55- $HOME/foo/.deps/tiny-pkg-config/pkg-config --libs python3-embed
56- $HOME/foo/.deps/tiny-pkg-config/pkg-config --cflags python3-embed
57- gopy build -o foo.exe .
85+ gopy build -o foo .
5886 gopy exec ls -lh
59- export GP_INJECT_DEBUG=1
60- ./foo.exe
87+ ./foo
6188
6289 - name : Test run project
90+ env :
91+ GP_INJECT_DEBUG : " 1"
6392 run : |
64- export GP_INJECT_DEBUG=1
6593 cd $HOME/foo
6694 gopy run -v .
6795
You can’t perform that action at this time.
0 commit comments