File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 strategy :
88 matrix :
99 include :
10- - { sys: mingw64, env: x86_64 }
11- - { sys: mingw32, env: i686 }
10+ - { sys: mingw64, env: x86_64 , arch: amd64 }
11+ - { sys: mingw32, env: i686, arch: 386 }
1212 steps :
1313 - name : Check out repository code
1414 uses : actions/checkout@v4
@@ -18,14 +18,15 @@ jobs:
1818 msystem : ${{matrix.sys}}
1919 - name : Build executables
2020 env :
21- GOARCH : " 386 "
21+ GOARCH : ${{ matrix.arch }}
2222 GOGCCFLAGS : -mthreads -static-libgcc
2323 CFLAGS : -mthreads -static-libgcc
2424 run : |
25- go build -o build/discon-server_x32.exe discon-wrapper/discon-server
26- go build -buildmode=c-shared -o build/discon-client_x32.exe discon-wrapper/discon-client
27- gcc -o build/test-discon_x32.dll test-discon/test-discon.c --shared -g
28- gcc -o build/test-app_x32.exe test-app/test-app.c -g
25+ mkdir build
26+ gcc -o build/test-discon_${{ matrix.env }}.dll test-discon/test-discon.c --shared -g
27+ gcc -o build/test-app_${{ matrix.env }}.exe test-app/test-app.c -g
28+ go build -o build/discon-server_${{ matrix.env }}.exe discon-wrapper/discon-server
29+ go build -buildmode=c-shared -o build/discon-client_${{ matrix.env }}.exe discon-wrapper/discon-client
2930 - uses : actions/upload-artifact@v4
3031 with :
3132 name : windows-binaries-${{ matrix.env }}
You can’t perform that action at this time.
0 commit comments