attempt to create different arch releases
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing

Signed-off-by: Jochen Maes <jochen@sejo-it.be>
This commit is contained in:
Jochen Maes 2023-10-31 07:14:28 +01:00
parent 61f6c2b0bd
commit a1ba52e956

View File

@ -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/