@@ -11,15 +11,15 @@ jobs:
1111 - runner : ubuntu-24.04
1212 type : linux
1313 platform : linux-amd64
14- - runner : ubuntu-24.04-arm # buildjet-2vcpu-ubuntu-2204-arm
14+ - runner : ubuntu-24.04-arm
1515 type : linux
1616 platform : linux-arm64
1717 - runner : macos-14
1818 type : macos
1919 platform : darwin-arm64
20- # - runner: windows-2022
21- # type: windows
22- # platform: windows-amd64
20+ - runner : windows-2022
21+ type : windows
22+ platform : windows-amd64
2323 steps :
2424 - uses : actions/checkout@v4
2525 - uses : actions/setup-node@v4
3838 # cache-dependency-path: |
3939 # xtracfg/*.gradle*
4040 # xtracfg/**/gradle-wrapper.properties
41+ - uses : egor-tensin/vs-shell@v2
42+ if : ${{ matrix.os.type == 'windows' }}
43+ with :
44+ arch : x64
4145 - name : zlib
4246 if : ${{ matrix.os.type == 'linux' }}
4347 working-directory : /tmp
@@ -54,15 +58,24 @@ jobs:
5458 working-directory : ./libxtracfg/java
5559 run : |
5660 ./gradlew nativeCompile -PLIB=true
61+ - name : log0
62+ run : |
63+ cat ./libxtracfg/java/build/native/nativeCompile/logs/compiler_commands.txt
5764 - name : log1
5865 run : |
5966 ls -l ./libxtracfg/c/build
60- # TODO: windows
6167 - name : c
68+ if : ${{ matrix.os.type != 'windows' }}
6269 working-directory : ./libxtracfg/c
6370 run : |
6471 ./build.sh
6572 ./test.sh
73+ - name : c
74+ if : ${{ matrix.os.type == 'windows' }}
75+ working-directory : ./libxtracfg/c
76+ run : |
77+ ./build.bat
78+ ./test.bat
6679 - name : log2
6780 run : |
6881 ls -l ./libxtracfg/c/build
@@ -74,13 +87,22 @@ jobs:
7487 npm --loglevel verbose run test
7588 - name : log3
7689 run : |
77- ls -lR ./libxtracfg/js/xtracfg-native-binding/prebuilds
90+ ls -R ./libxtracfg/js/xtracfg-native-binding/prebuilds
7891 # TODO: run tests for java, c, go
7992 - uses : actions/upload-artifact@v4
93+ if : ${{ matrix.os.type != 'windows' }}
8094 with :
8195 name : libxtracfg-c-${{ matrix.os.platform }}
8296 path : ./libxtracfg/c/build/libxtracfg.a
8397 retention-days : 1
98+ - uses : actions/upload-artifact@v4
99+ if : ${{ matrix.os.type == 'windows' }}
100+ with :
101+ name : libxtracfg-c-${{ matrix.os.platform }}
102+ path : |
103+ ./libxtracfg/c/build/libxtracfg.lib
104+ ./libxtracfg/c/build/libxtracfgjni_static_ext.lib
105+ retention-days : 1
84106 - uses : actions/upload-artifact@v4
85107 with :
86108 name : libxtracfg-c-hash-${{ matrix.os.platform }}
@@ -101,7 +123,7 @@ jobs:
101123 - runner : ubuntu-24.04
102124 type : linux
103125 platform : linux-amd64
104- - runner : ubuntu-24.04-arm # buildjet-2vcpu-ubuntu-2204-arm
126+ - runner : ubuntu-24.04-arm
105127 type : linux
106128 platform : linux-arm64
107129 - runner : macos-14
@@ -113,6 +135,7 @@ jobs:
113135 defaults :
114136 run :
115137 working-directory : ./xtracfg
138+ shell : bash
116139 steps :
117140 - uses : actions/checkout@v4
118141 - uses : actions/setup-go@v5
@@ -137,7 +160,7 @@ jobs:
137160 CMD_GIT_BRANCH : github.com/interactive-instruments/xtraplatform-cli/xtracfg/cmd.gitBranch=${{ github.ref_name }}
138161 CMD_GIT_SHA : github.com/interactive-instruments/xtraplatform-cli/xtracfg/cmd.gitSha=${{ steps.short-sha.outputs.substring }}
139162 CMD_GIT_TAG : github.com/interactive-instruments/xtraplatform-cli/xtracfg/cmd.gitTag=${{ github.ref_type == 'tag' && github.ref_name || '' }}
140- EXT_LDFLAGS : ${{ matrix.os.type == 'macos' && '-framework CoreServices -framework Foundation' || ' -z noexecstack' }}
163+ EXT_LDFLAGS : ${{ ( matrix.os.type == 'macos' && '-framework CoreServices -framework Foundation') || (matrix.os.type == 'linux' && ' -z noexecstack') || ' ' }}
141164 run : |
142165 go build -o build/xtracfg -ldflags="-s -w -X ${CMD_GIT_TAG} -X ${CMD_GIT_SHA} -X ${CMD_GIT_BRANCH} '-extldflags=${EXT_LDFLAGS}'"
143166 - name : log1
0 commit comments