Dorian Zedler
b54883ff99
Some checks reported errors
continuous-integration/drone/push Build encountered an error
27 lines
No EOL
753 B
YAML
27 lines
No EOL
753 B
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:
|
|
- curl --user ${GITEA_USER}:${GITEA_TOKEN} --upload-file receiver/target/x86_64-pc-windows-msvc/release/receiver.exe https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/${DRONE_COMMIT_SHA}/receiver-windows.exe
|
|
trigger:
|
|
branch:
|
|
- main |