From 48e6f061420a9da04ed658e35d1ad8768791147f Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sat, 30 Dec 2023 13:47:07 +0100 Subject: feat: cache build results debug: void MONERO_DEBUG_test0(); bool MONERO_DEBUG_test1(bool x); int MONERO_DEBUG_test2(int x); uint64_t MONERO_DEBUG_test3(uint64_t x); void* MONERO_DEBUG_test4(uint64_t x); const char* MONERO_DEBUG_test5(); const char* MONERO_DEBUG_test5_std(); --- save_artifact.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 save_artifact.sh (limited to 'save_artifact.sh') diff --git a/save_artifact.sh b/save_artifact.sh new file mode 100755 index 0000000..e300e6f --- /dev/null +++ b/save_artifact.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Usage: ${{ github.workspace }}/save_artifact.sh libsodium "${SODIUM_VERSION}-${{ matrix.host_triplet }}-${SODIUM_HASH}" ${{ github.workspace }}/prefix/lib/libsodium.a + +registry_user=mrcyjanek +cache_name="$1" +cache_key="$2" +path_to_file_="$3" +xz --extreme --keep $path_to_file_ +path_to_file="$3.xz" +basename="$(basename $path_to_file)" +curl --user $registry_user:$PAT_SECRET_PACKAGE \ + --upload-file "$path_to_file" \ + "https://git.mrcyjanek.net/api/packages/mrcyjanek/generic/monero_c/${cache_name}-${cache_key}/${basename}" +rm $path_to_file \ No newline at end of file -- cgit v1.2.3