Portnut/.drone.yml
Justine Pelletreau 4edb7b08ab
All checks were successful
continuous-integration/drone/push Build is passing
drone
2023-07-14 02:32:56 +02:00

49 lines
936 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: rust:latest
commands:
- cargo build --release
---
kind: pipeline
type: docker
name: release
steps:
- name: build
image: rust:latest
commands:
- cargo build --release
- rustup target add x86_64-pc-windows-gnu
- rustup toolchain install stable-x86_64-pc-windows-gnu
- apt update
- apt install -yy mingw-w64
- cargo build --target x86_64-pc-windows-gnu --release
environment:
DEBIAN_FRONTEND: noninteractive
when:
event:
include:
- tag
- name: create-release
image: plugins/gitea-release:latest
custom_dns: [ 9.9.9.9 ]
settings:
api_key:
from_secret: gitea_api
base_url: https://gitea.squi.fr
note: This is an automated release
files:
- ./target/release/portnut
- ./target/x86_64-pc-windows-gnu/release/portnut.exe
when:
event:
include:
- tag