From 6b7b4badcd436d2dcedaffd42dc9776d1ddfd965 Mon Sep 17 00:00:00 2001 From: wowario Date: Mon, 22 Mar 2021 17:43:50 +0300 Subject: [PATCH] simple ci --- .drone.yml | 130 +++-------------------------------------------------- 1 file changed, 7 insertions(+), 123 deletions(-) diff --git a/.drone.yml b/.drone.yml index aebc4fa..27cc9cd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,138 +1,22 @@ --- kind: pipeline type: docker -name: linux-release +name: linux-build steps: - - name: build - image: wowlet:linux - volumes: - - name: ccache_linux_release - path: /root/.ccache - - name: monero - path: /drone/src/monero - - name: files_linux_release - path: /files - commands: - - TOR_BIN="/usr/local/tor/bin/tor" make -j2 release-static - - contrib/build-appimage.sh - environment: - OPENSSL_ROOT_DIR: /usr/local/openssl/ - CMAKEFLAGS_EXTRA: -DFETCH_DEPS=Off - - name: deploy - image: wowlet:linux - volumes: - - name: ccache_linux_release - path: /root/.ccache - - name: files_linux_release - path: /linux-release - - name: files_linux_appimage - path: /linux-release-appimage + - name: linux-build + image: wowlet-linux:latest commands: - - export FN="wowlet-`echo $DRONE_COMMIT_AFTER | cut -c 1-7`.zip" - - export TARGET_DIR="/linux-release/$DRONE_SOURCE_BRANCH" - - mkdir -p "$TARGET_DIR" - - echo "writing to $TARGET_DIR/$FN" - - strip -s build/bin/wowlet - - zip -j "$TARGET_DIR/$FN" build/wowlet.log build/bin/wowlet - - echo "[*] written to https://ci.wownero.com/files/linux-release/$DRONE_SOURCE_BRANCH/$FN" - - # AppImage - - export FN="wowlet-`git rev-parse --short HEAD`.AppImage" - - export TARGET_DIR="/linux-release-appimage/$DRONE_SOURCE_BRANCH" - - mkdir -p "$TARGET_DIR" - - echo "writing to $TARGET_DIR/$FN" - - mv "wowlet.AppImage" "$TARGET_DIR/$FN" - - echo "[*] written to https://vi.wownero.com/files/linux-release-appimage/$DRONE_SOURCE_BRANCH/$FN" - -volumes: -- name: ccache_linux_release - host: - path: /var/drone/ccache_wow_linux_release/ -- name: monero - host: - path: /var/drone/monero -- name: files_linux_release - host: - path: /build/wowllet_files/linux-release/ -- name: files_linux_appimage - host: - path: /build/wowllet_files/linux-release-appimage/ + - make release-static -j2 --- kind: pipeline type: docker -name: windows-release +name: windows-build steps: - name: build - image: wowlet:win - volumes: - - name: ccache_win_release - path: /root/.ccache - - name: files_win_release - path: /files - - name: monero - path: /drone/src/monero - commands: - - 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 - image: wowlet:win - volumes: - - name: files_win_release - path: /files + image: wowlet-windows:latest commands: - - 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" - - zip -j "$TARGET_DIR/$FN" build/x86_64-w64-mingw32/release/bin/wowlet.exe - - echo "[*] written to https://ci.wownero.com/files-wow/windows-release/$DRONE_SOURCE_BRANCH/$FN" -volumes: -- name: ccache_win_release - host: - path: /var/drone/ccache_wow_win_release/ -- name: files_win_release - host: - path: /build/wowllet_files/windows-release/ -- name: monero - host: - path: /var/drone/monero - ---- -kind: pipeline -type: docker -name: mac-release - -steps: - - name: build - image: wowlet:mac - volumes: - - name: files_mac_release - path: /files - commands: - - mkdir -p build - - 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" - - scp -P22 administrator@steve.jobs.xmr.pm:wowlet.zip build/wowlet.zip - - name: deploy - image: wowlet:mac - volumes: - - name: files_mac_release - path: /files - commands: - - 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" - - mv build/wowlet.zip "$TARGET_DIR/$FN" - - echo "[*] written to https://ci.wownero.com/mac-release/$DRONE_SOURCE_BRANCH/$FN" - -volumes: -- name: files_mac_release - host: - path: /build/wowllet_files/mac-release/ ---- -kind: signature -hmac: f16a0379280e2e89987930d635ec6fb938d67732fdaf4ddc488f2a9db64bda2c + - make depends root=/depends target=x86_64-w64-mingw32 tag=win-x64 -j2 ...