diff options
| author | cyan <cyjan@mrcyjanek.net> | 2024-07-01 09:18:11 +0000 |
|---|---|---|
| committer | cyan <cyjan@mrcyjanek.net> | 2024-07-01 09:18:11 +0000 |
| commit | 20d31caf6531fcfb414fe093f8a5cc7de45ec841 (patch) | |
| tree | 8bc981b9445554bb8b6c301e5dc3d7ab289eabe8 /save_artifact.sh | |
| parent | 662ad04d72393174cf96e0470e04ba2a03296087 (diff) | |
drop cache entirely
Diffstat (limited to 'save_artifact.sh')
| -rwxr-xr-x | save_artifact.sh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/save_artifact.sh b/save_artifact.sh deleted file mode 100755 index dd8dc45..0000000 --- a/save_artifact.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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" - -if [[ -f "/tmp/cache_hit_$(echo "$3" | md5sum | awk '{ print $1 }')" ]]; -then - echo "was cached $1 $2 $(basename $path_to_file_)" - exit 0 -fi - -path_to_file="$3.xz" -basename="$(basename $path_to_file)" - -if [[ ! -f "$path_to_file_" ]]; -then - echo "$(basename $path_to_file_) doesn't exist" - exit 0; -fi - -xz --extreme --keep $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}" &>/dev/null - -echo "cached $1 $2 $(basename $path_to_file_)" - -rm $path_to_file
\ No newline at end of file |
