wowlet/.drone.yml

139 lines
3.9 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: linux-release
steps:
- name: build
2021-02-22 06:51:09 +00:00
image: wowlet:linux
volumes:
- name: ccache_linux_release
path: /root/.ccache
2021-01-14 20:38:14 +00:00
- name: monero
path: /drone/src/monero
- name: files_linux_release
path: /files
commands:
2021-02-20 14:46:02 +00:00
- TOR_BIN="/usr/local/tor/bin/tor" make -j2 release-static
2021-01-15 21:04:53 +00:00
- contrib/build-appimage.sh
environment:
OPENSSL_ROOT_DIR: /usr/local/openssl/
CMAKEFLAGS_EXTRA: -DFETCH_DEPS=Off
- name: deploy
2021-02-22 06:51:09 +00:00
image: wowlet:linux
volumes:
- name: ccache_linux_release
path: /root/.ccache
- name: files_linux_release
2021-01-15 21:04:53 +00:00
path: /linux-release
- name: files_linux_appimage
path: /linux-release-appimage
commands:
2021-02-22 06:51:09 +00:00
- export FN="wowlet-`echo $DRONE_COMMIT_AFTER | cut -c 1-7`.zip"
2021-01-15 21:04:53 +00:00
- export TARGET_DIR="/linux-release/$DRONE_SOURCE_BRANCH"
- mkdir -p "$TARGET_DIR"
- echo "writing to $TARGET_DIR/$FN"
2021-02-22 06:51:09 +00:00
- strip -s build/bin/wowlet
- zip -j "$TARGET_DIR/$FN" build/wowlet.log build/bin/wowlet
2021-02-20 14:46:02 +00:00
- echo "[*] written to https://ci.wownero.com/files/linux-release/$DRONE_SOURCE_BRANCH/$FN"
2021-01-15 21:04:53 +00:00
- # AppImage
2021-02-22 06:51:09 +00:00
- export FN="wowlet-`git rev-parse --short HEAD`.AppImage"
2021-01-15 21:04:53 +00:00
- export TARGET_DIR="/linux-release-appimage/$DRONE_SOURCE_BRANCH"
- mkdir -p "$TARGET_DIR"
- echo "writing to $TARGET_DIR/$FN"
2021-02-22 06:51:09 +00:00
- mv "wowlet.AppImage" "$TARGET_DIR/$FN"
2021-02-20 14:46:02 +00:00
- echo "[*] written to https://vi.wownero.com/files/linux-release-appimage/$DRONE_SOURCE_BRANCH/$FN"
volumes:
- name: ccache_linux_release
host:
2020-12-21 20:34:36 +00:00
path: /var/drone/ccache_wow_linux_release/
2021-01-14 20:38:14 +00:00
- name: monero
host:
path: /var/drone/monero
- name: files_linux_release
host:
2021-02-20 14:46:02 +00:00
path: /build/wowllet_files/linux-release/
2021-01-15 21:04:53 +00:00
- name: files_linux_appimage
host:
2021-02-20 14:46:02 +00:00
path: /build/wowllet_files/linux-release-appimage/
---
kind: pipeline
type: docker
name: windows-release
steps:
- name: build
2021-02-22 06:51:09 +00:00
image: wowlet:win
volumes:
2021-01-14 20:38:14 +00:00
- name: ccache_win_release
path: /root/.ccache
- name: files_win_release
path: /files
2021-01-14 20:38:14 +00:00
- name: monero
path: /drone/src/monero
commands:
2021-02-20 14:46:02 +00:00
- TOR_BIN="/usr/local/tor/bin/tor.exe" make depends root=/depends target=x86_64-w64-mingw32 tag=win-x64 -j2
environment:
CMAKEFLAGS_EXTRA: -DFETCH_DEPS=Off
- name: deploy
2021-02-22 06:51:09 +00:00
image: wowlet:win
volumes:
- name: files_win_release
path: /files
commands:
2021-02-22 06:51:09 +00:00
- export FN="wowlet-`echo $DRONE_COMMIT_AFTER | cut -c 1-7`.zip"
- export TARGET_DIR="/files/$DRONE_SOURCE_BRANCH"
- mkdir -p "$TARGET_DIR"
- echo "writing to $TARGET_DIR/$FN"
2021-02-22 06:51:09 +00:00
- zip -j "$TARGET_DIR/$FN" build/x86_64-w64-mingw32/release/bin/wowlet.exe
2021-02-20 14:46:02 +00:00
- echo "[*] written to https://ci.wownero.com/files-wow/windows-release/$DRONE_SOURCE_BRANCH/$FN"
volumes:
2021-01-14 20:38:14 +00:00
- name: ccache_win_release
host:
2020-12-21 20:34:36 +00:00
path: /var/drone/ccache_wow_win_release/
- name: files_win_release
host:
2021-02-20 14:46:02 +00:00
path: /build/wowllet_files/windows-release/
2021-01-14 20:38:14 +00:00
- name: monero
host:
path: /var/drone/monero
2020-12-08 21:03:04 +00:00
---
kind: pipeline
type: docker
name: mac-release
steps:
- name: build
2021-02-22 06:51:09 +00:00
image: wowlet:mac
2020-12-08 21:03:04 +00:00
volumes:
- name: files_mac_release
path: /files
commands:
- mkdir -p build
2020-12-21 20:34:36 +00:00
- ssh administrator@steve.jobs.xmr.pm "chmod +x build_wow_macos.sh && PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin ~/build_wow_macos.sh $DRONE_COMMIT_SHA"
2021-02-22 06:51:09 +00:00
- scp -P22 administrator@steve.jobs.xmr.pm:wowlet.zip build/wowlet.zip
2020-12-08 21:03:04 +00:00
- name: deploy
2021-02-22 06:51:09 +00:00
image: wowlet:mac
2020-12-08 21:03:04 +00:00
volumes:
- name: files_mac_release
path: /files
commands:
2021-02-22 06:51:09 +00:00
- export FN="wowlet-`echo $DRONE_COMMIT_AFTER | cut -c 1-7`.zip"
2020-12-08 21:03:04 +00:00
- export TARGET_DIR="/files/$DRONE_SOURCE_BRANCH"
- mkdir -p "$TARGET_DIR"
- echo "writing to $TARGET_DIR/$FN"
2021-02-22 06:51:09 +00:00
- mv build/wowlet.zip "$TARGET_DIR/$FN"
2021-02-20 14:46:02 +00:00
- echo "[*] written to https://ci.wownero.com/mac-release/$DRONE_SOURCE_BRANCH/$FN"
2020-12-08 21:03:04 +00:00
volumes:
- name: files_mac_release
host:
2021-02-20 14:46:02 +00:00
path: /build/wowllet_files/mac-release/
2020-12-08 21:03:04 +00:00
---
kind: signature
2020-12-09 12:02:53 +00:00
hmac: f16a0379280e2e89987930d635ec6fb938d67732fdaf4ddc488f2a9db64bda2c
2020-12-08 21:03:04 +00:00
...