Skip to content

Commit

Permalink
Build artefacts on AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jun 29, 2020
1 parent cbacf4b commit 5ac55aa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ environment:
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
CYG_CACHE: C:/cygwin/var/cache/setup
OCAML_PORT: msvc64
ARTEFACTS: no
matrix:
- OCAMLBRANCH: 3.11
- OCAMLBRANCH: 3.12
Expand All @@ -26,6 +27,9 @@ environment:
- OCAMLBRANCH: 4.09
- OCAMLBRANCH: 4.10
SKIP_OCAML_TEST: no
OCAML_PORT: mingw
ARTEFACTS: yes
MSVS_PREFERENCE: SDK7.0
- OCAMLBRANCH: 4.11
SKIP_OCAML_TEST: no
- OCAMLBRANCH: trunk
Expand All @@ -40,7 +44,7 @@ install:
# cygpath behaves crazily), but after the MSVC one.
- set Path=C:\cygwin\bin;%OCAMLROOT%\bin;C:\flexdll;%Path%
- '%CYG_ROOT%\bin\bash -lc "cygcheck -dc cygwin"'
- '"%CYG_ROOT%\setup-x86.exe" --quiet-mode --no-shortcuts --no-startmenu --no-desktop --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages cygwin64-gcc-core,unzip > nul'
- '"%CYG_ROOT%\setup-x86.exe" --quiet-mode --no-shortcuts --no-startmenu --no-desktop --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages cygwin64-gcc-core,unzip,zip > nul'
- '%CYG_ROOT%\bin\bash -lc "x86_64-pc-cygwin-gcc --version" > nul || "%CYG_ROOT%\setup-x86.exe" --quiet-mode --no-shortcuts --no-startmenu --no-desktop --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --upgrade-also > nul'
- '%CYG_ROOT%\bin\bash -lc "cygcheck -dc cygwin"'
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
Expand Down
14 changes: 14 additions & 0 deletions appveyor_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,18 @@ if [ "$SKIP_OCAML_TEST" = no ] ; then
run "make world" $MAKEOCAML flexdll world
fi

if [ "$ARTEFACTS" = 'yes' ] ; then
pushd "$APPVEYOR_BUILD_FOLDER" &> /dev/null

make package_bin installer
SUFFIX="$(git describe)"
VERSION="$(sed -ne 's/^VERSION *= *//p' Makefile)"
if [ "$SUFFIX" != "$VERSION" ] ; then
mv "flexdll-bin-$VERSION.zip" "flexdll-bin-$SUFFIX.zip"
mv "flexdll-$VERSION-setup.exe" "flexdll-$SUFFIX-setup.exe"
fi
appveyor PushArtifact "flexdll-$SUFFIX-setup.exe"
appveyor PushArtifact "flexdll-bin-$SUFFIX.zip"

popd &> /dev/null
fi

0 comments on commit 5ac55aa

Please sign in to comment.