Skip to content
Snippets Groups Projects
Commit 09d74ff1 authored by samm2's avatar samm2
Browse files

.appveyor.yml: fix reproducible builds and make it a bit more readable

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5589 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent da46a819
Branches
No related tags found
No related merge requests found
...@@ -19,25 +19,25 @@ init: ...@@ -19,25 +19,25 @@ init:
&& sudo dpkg --install --force-all /tmp/nsis-common_3.09-1_all.deb /tmp/nsis_3.09-1_amd64.deb && sudo dpkg --install --force-all /tmp/nsis-common_3.09-1_all.deb /tmp/nsis_3.09-1_amd64.deb
build_script: build_script:
- > - cd smartmontools
cd smartmontools && - export SOURCE_DATE_EPOCH=$(git log -1 --format="%at")
SOURCE_DATE_EPOCH=$(git log -1 --format="%at") - SM_VER=$(grep -E 'AC_INIT\(\[smartmontools\]' configure.ac|awk -F, '{print $2}'|tr -d '[]')
BUILD_INFO='"(AppVeyor)"' - sh: "SVNREV=$(git log -1|grep -oP 'git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@(\\d+)'|awk -F@ '{print $2}')"
SM_VER=$(grep -E 'AC_INIT\(\[smartmontools\]' configure.ac|awk -F, '{print $2}'|tr -d '[]') - BUILD_INFO='"(AppVeyor)"'
SVNREV=$(git log -1|grep -oP 'git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@(\d+)'|awk -F@ '{print $2}') && - 'echo "Starting build: SOURCE_DATE_EPOCH: ${SOURCE_DATE_EPOCH}, SM_VER: ${SM_VER}, SVNREV: ${SVNREV}"'
echo "Starting build: SOURCE_DATE_EPOCH: ${SOURCE_DATE_EPOCH}, SM_VER: ${SM_VER}, SVNREV: ${SVNREV}" && - ./autogen.sh && mkdir build && cd build
./autogen.sh && mkdir build && cd build && - ../configure build_alias=$(../config.guess) host_alias=i686-w64-mingw32 SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
../configure build_alias=$(../config.guess) host_alias=i686-w64-mingw32 SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH} && - make -j BUILD_INFO="$BUILD_INFO" && make distdir-win32 && cd .. && mkdir build64 && cd build64
make -j BUILD_INFO="$BUILD_INFO" && make distdir-win32 && cd .. && mkdir build64 && cd build64 && - ../configure build_alias=$(../config.guess) host_alias=x86_64-w64-mingw32 SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
../configure build_alias=$(../config.guess) host_alias=x86_64-w64-mingw32 SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH} && - make -j BUILD_INFO="$BUILD_INFO" && make distdir-win32
make -j BUILD_INFO="$BUILD_INFO" && make distdir-win32 && - cd ../build && dest="smartmontools-win32-setup-${SM_VER}-r${SVNREV}.exe"
cd ../build && - make BUILD_INFO="$BUILD_INFO" builddir_win64=../build64 distinst_win32="$dest" installer-win32
dest="smartmontools-win32-setup-${SM_VER}-r${SVNREV}.exe" && - sha256sum *.exe
make BUILD_INFO="$BUILD_INFO" builddir_win64=../build64 distinst_win32="$dest" installer-win32 && # - cd /home/appveyor/projects/smartmontools-fork/ && zip build.zip smartmontools -r
sha256sum *.exe
artifacts: artifacts:
- path: smartmontools/build/smartmontools-win32-setup-*.exe - path: smartmontools/build/smartmontools-win32-setup-*.exe
# - path: build.zip
deploy: deploy:
- provider: Webhook - provider: Webhook
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment