From ae580c7749e72802812a83e9c5ae578a050a01e4 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 30 Sep 2024 13:54:47 +0300 Subject: [PATCH] Enable artifact upload --- .cirrus.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 8b19bb0111..9906f8bc3d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -138,3 +138,14 @@ linux_aarch64_task: clang_script: - mkdir artifacts - "sh -ex ./.ci/build-linux-aarch64.sh" + artifacts: + name: Artifact + path: "artifacts/*" + push_script: | + if [ "$CIRRUS_REPO_OWNER" = "RPCS3" ] && [ -z "$CIRRUS_PR" ] && [ "$CIRRUS_BRANCH" = "master" ]; then + COMM_TAG=$(awk '/version{.*}/ { printf("%d.%d.%d", $5, $6, $7) }' ./rpcs3/rpcs3_version.cpp) + COMM_COUNT=$(git rev-list --count HEAD) + COMM_HASH=$(git rev-parse --short=8 HEAD) + export AVVER="${COMM_TAG}-${COMM_COUNT}" + .ci/github-upload.sh + fi;