attempt to create different arch releases
Signed-off-by: Jochen Maes <jochen@sejo-it.be>
This commit is contained in:
parent
61f6c2b0bd
commit
a1ba52e956
24
.drone.yml
24
.drone.yml
@ -22,24 +22,40 @@ steps:
|
||||
image: rust:1.73-alpine
|
||||
commands:
|
||||
- apk add --no-cache musl-dev gcc-aarch64-none-elf
|
||||
- mkdir /artifacts/amd64
|
||||
- mkdir /artifacts/arm64
|
||||
- rustup target add x86_64-unknown-linux-musl
|
||||
- rustup target add aarch64-unknown-linux-musl
|
||||
- cargo build --target x86_64-unknown-linux-musl --bins -r --config 'package.version="${DRONE_TAG##v}"'
|
||||
- CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/usr/bin/aarch64-none-elf-gcc cargo build --target aarch64-unknown-linux-musl --bins -r --config 'package.version="${DRONE_TAG##v}"'
|
||||
- cp target/x86_64-unknown-linux-musl/release/mouse /artifacts/mouse-amd64
|
||||
- cp target/aarch64-unknown-linux-musl/release/mouse /artifacts/mouse-arm64
|
||||
- cp target/x86_64-unknown-linux-musl/release/mouse /artifacts/amd64/mouse
|
||||
- cp target/aarch64-unknown-linux-musl/release/mouse /artifacts/arm64/mouse
|
||||
volumes:
|
||||
- name: artifacts
|
||||
path: /artifacts/
|
||||
|
||||
- name: create gitea release
|
||||
- name: create gitea release amd64
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_api_key
|
||||
base_url: https://gitea.sejo-it.be
|
||||
checksum: sha256
|
||||
files: /artifacts/*
|
||||
files: /artifacts/amd64/*
|
||||
volumes:
|
||||
- name: artifacts
|
||||
path: /artifacts/
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- name: create gitea release arm64
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_api_key
|
||||
base_url: https://gitea.sejo-it.be
|
||||
checksum: sha256
|
||||
files: /artifacts/arm64/*
|
||||
volumes:
|
||||
- name: artifacts
|
||||
path: /artifacts/
|
||||
|
Loading…
Reference in New Issue
Block a user