Update drone.yml for windows repro builds

This commit is contained in:
tobtoht 2021-01-12 01:56:09 +01:00
parent 4f5ad63bf9
commit 5f205ac49c
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -83,13 +83,11 @@ volumes:
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: windows-mxe-release name: windows-release
steps: steps:
- name: build - name: build
image: feather:win image: feather:win
volumes: volumes:
- name: ccache_win_release
path: /root/.ccache
- name: files_win_release - name: files_win_release
path: /files path: /files
commands: commands:
@ -98,14 +96,12 @@ steps:
- git config --global url."http://gitea:3000/".insteadOf https://git.wownero.com/ - git config --global url."http://gitea:3000/".insteadOf https://git.wownero.com/
- git submodule update --init monero - git submodule update --init monero
- git submodule update --init --depth 1 --recursive monero - git submodule update --init --depth 1 --recursive monero
- PATH="/mxe/usr/bin/:$PATH" TOR_BIN="/mxe/usr/x86_64-w64-mingw32.static/bin/tor.exe" make -j8 windows-mxe-release - TOR_BIN="/usr/local/tor/bin/tor.exe" make depends root=/depends target=x86_64-w64-mingw32 tag=win-x64 -j6
environment: environment:
CMAKEFLAGS_EXTRA: -DFETCH_DEPS=Off CMAKEFLAGS_EXTRA: -DFETCH_DEPS=Off
- name: deploy - name: deploy
image: feather:win image: feather:win
volumes: volumes:
- name: ccache_win_release
path: /root/.ccache
- name: files_win_release - name: files_win_release
path: /files path: /files
commands: commands:
@ -113,15 +109,12 @@ steps:
- export TARGET_DIR="/files/$DRONE_SOURCE_BRANCH" - export TARGET_DIR="/files/$DRONE_SOURCE_BRANCH"
- mkdir -p "$TARGET_DIR" - mkdir -p "$TARGET_DIR"
- echo "writing to $TARGET_DIR/$FN" - echo "writing to $TARGET_DIR/$FN"
- zip -j "$TARGET_DIR/$FN" build/feather.log build/bin/feather.exe - zip -j "$TARGET_DIR/$FN" build/bin/feather.exe
- echo "[*] written to https://build.featherwallet.org/files/windows-mxe-release/$DRONE_SOURCE_BRANCH/$FN" - echo "[*] written to https://build.featherwallet.org/files/windows-mxe-release/$DRONE_SOURCE_BRANCH/$FN"
volumes: volumes:
- name: ccache_win_release
host:
path: /var/drone/ccache_win_release/
- name: files_win_release - name: files_win_release
host: host:
path: /build/feather_files/files/windows-mxe-release/ path: /build/feather_files/files/windows-release/
--- ---
kind: pipeline kind: pipeline