From a1ba52e956a6bba0f481e466a24095a2cf51f499 Mon Sep 17 00:00:00 2001 From: Jochen Maes Date: Tue, 31 Oct 2023 07:14:28 +0100 Subject: [PATCH] attempt to create different arch releases Signed-off-by: Jochen Maes --- .drone.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4253fcf..5342565 100644 --- a/.drone.yml +++ b/.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/