@@ -37,28 +37,52 @@ jobs:
3737 # echo "CFLAGS=" $CFLAGS "LDFLAGS=" $LDFLAGS &&
3838 # && find /usr/mxe* -type f
3939 # && ls /usr/mxe-x86-64-w64-mingw32.static/include/admesh
40+ # export PKG_CONFIG_PATH=./admesh &&
41+ # export PKG_CONFIG_PATH_x86_64_w64_mingw32_static=../admesh &&
42+ # export PKG_CONFIG_PATH_x86_64_w64_mingw32_static=../admesh &&
43+ # strings `which x86_64-w64-mingw32.static-pkg-config` | grep usr &&
44+ # ls /usr/mxe-x86-64-w64-mingw32.static/lib/pkgconfig &&
45+ # export _STLINCLUDE= &&
46+ # export STLINCLUDE="${_STLINCLUDE}/stlsplit" &&
47+ # echo "___${_STLINCLUDE}___" &&
48+ # echo "___${STLINCLUDE}___" &&
49+
4050 run : >
4151 export PATH=/usr/lib/mxe/usr/bin:$PATH &&
4252 git clone https://github.com/udif/stlsplit &&
4353 cd stlsplit &&
44- export PKG_CONFIG_PATH=../admesh &&
54+ export PKG_CONFIG_PATH_x86_64_w64_mingw32_static=/usr/mxe-x86-64-w64-mingw32.static/lib/pkgconfig &&
4555 export CFLAGS=$(x86_64-w64-mingw32.static-pkg-config libadmesh --cflags) &&
4656 export CXXFLAGS=$(x86_64-w64-mingw32.static-pkg-config libadmesh --cflags) &&
4757 export LDFLAGS=$(x86_64-w64-mingw32.static-pkg-config libadmesh --libs) &&
48- ./autogen.sh && ./configure --host=x86_64-w64-mingw32.static --prefix=/usr/mxe-x86-64-w64-mingw32.static &&
58+ echo "CFLAGS=" $CFLAGS "LDFLAGS=" $LDFLAGS &&
59+ ./autogen.sh && ./configure --host=x86_64-w64-mingw32.static --prefix=/usr/mxe-x86-64-w64-mingw32.static --includedir='${prefix}/include' &&
4960 make && sudo make install
5061
5162 - name : qmake
5263 run : >
5364 export PATH=/usr/lib/mxe/usr/bin:$PATH &&
54- export PKG_CONFIG_PATH=./admesh &&
55- ls /usr/mxe-x86-64-w64-mingw32.static/lib/pkgconfig &&
56- export CFLAGS="$(x86_64-w64-mingw32.static-pkg-config libadmesh --cflags) $(x86_64-w64-mingw32.static-pkg-config libstlsplit --cflags)" &&
57- export CXXFLAGS="$(x86_64-w64-mingw32.static-pkg-config libadmesh --cflags) $(x86_64-w64-mingw32.static-pkg-config libstlsplit --cflags)" &&
65+ export PKG_CONFIG_PATH_x86_64_w64_mingw32_static=/usr/mxe-x86-64-w64-mingw32.static/lib/pkgconfig &&
66+ export CFLAGS="$(x86_64-w64-mingw32.static-pkg-config libadmesh --cflags) $(x86_64-w64-mingw32.static-pkg-config libstlsplit --cflags | sed 's/\s*$//g')/stlsplit" &&
67+ export CXXFLAGS=$CFLAGS
5868 export LDFLAGS=$(x86_64-w64-mingw32.static-pkg-config libadmesh --libs) &&
5969 /usr/lib/mxe/usr/x86_64-w64-mingw32.static/qt5/bin/qmake &&
6070 cat Makefile && cat Makefile.Release
6171
6272 - name : make
6373 run : export PATH=/usr/lib/mxe/usr/bin:$PATH && make
6474
75+ - name : Declare some variables
76+ id : vars
77+ shell : bash
78+ run : |
79+ echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
80+ echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
81+
82+ - name : upload windows
83+ uses : actions/upload-artifact@v2
84+ with :
85+ name : admeshgui-${{ steps.vars.outputs.sha_short }}
86+ path : |
87+ .libs/*.exe
88+ .libs/*.dll
0 commit comments