CI: test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dorian Zedler 2023-02-18 10:51:38 +01:00
parent 8d8a0ad56d
commit e1ab0ed1d6
Signed by: dorian
GPG key ID: 989DE36109AFA354
2 changed files with 30 additions and 1 deletions

View file

@ -19,12 +19,39 @@ platform:
os: darwin
arch: amd64
steps:
- name: test
- name: build
commands:
- cd receiver
- rustup default stable
- cargo build --release
- ls target/release
- name: bundle
commands:
- cargo install cargo-bundle
- cargo bundle --release
- ls
- ls target/release
- mv target/release/receiver.app ./receiver.app
- brew install create-dmg
create-dmg \
--volname "ok-ready-go-receiver" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "receiver.app" 200 190 \
--hide-extension "receiver.app" \
--app-drop-link 600 185 \
"receiver-macos.dmg" \
"./"
- 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-macos.dmg https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$${env:DRONE_COMMIT_SHA}/receiver-macos.dmg'
depends_on:
- start-github-action
---

View file

@ -9,6 +9,8 @@ homepage = "https://ok-ready-go.speedclimbing.org/"
readme = "README.md"
license = "AGPL-3.0-only"
[package.metadata.bundle]
identifier = "org.speedclimbing.ok-ready-go.receiver"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]