ok-ready-go/.drone.yml
Dorian Zedler e9f72cf791
All checks were successful
continuous-integration/drone/push Build is passing
Fix: use correct target
2023-02-16 22:04:21 +01:00

48 lines
No EOL
1.2 KiB
YAML

kind: pipeline
type: exec
name: build-receiver-windows
platform:
os: windows
arch: amd64
steps:
- name: build
environment:
RUSTFLAGS: '-C target-feature=+crt-static'
commands:
- whoami
- cd receiver
- C:\Users\doria\.cargo\bin\rustup.exe default stable
- C:\Users\doria\.cargo\bin\cargo.exe build --release --target x86_64-pc-windows-msvc
- name: upload
environment:
GITEA_USER:
from_secret: gitea-user
GITEA_TOKEN:
from_secret: gitea-token
commands:
- '& "C:\Program Files\Git\mingw64\bin\curl.exe" --user $${env:GITEA_USER}:$${env:GITEA_TOKEN} --upload-file receiver/target/x86_64-pc-windows-msvc/release/receiver.exe https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$${env:DRONE_COMMIT_SHA}/receiver-windows.exe'
trigger:
branch:
- main
---
kind: pipeline
name: build-and-deploy-web
steps:
- name: build-crypto-helper-web
image: itsblue.dev/plugins/wasm-pack
commands:
- cd crypto_helper
- wasm-pack build --target no-modules
- mkdir -p ../web/lib
- cp pkg/crypto_helper_bg.wasm ../web/lib
- cp pkg/crypto_helper.js ../web/lib
- name: publish
image: itsblue.dev/plugins/codeberg-pages-deploy
settings:
folder: web
ssh_key:
from_secret: gitea-ssh-key