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 /download_artifact.sh | |
| parent | 662ad04d72393174cf96e0470e04ba2a03296087 (diff) | |
drop cache entirely
Diffstat (limited to 'download_artifact.sh')
| -rwxr-xr-x | download_artifact.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/download_artifact.sh b/download_artifact.sh deleted file mode 100755 index cdf5241..0000000 --- a/download_artifact.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# Usage: ${{ github.workspace }}/download_artifact.sh libsodium "${SODIUM_VERSION}-${{ matrix.host_triplet }}-${SODIUM_HASH}" ${{ github.workspace }}/prefix/lib/libsodium.a -set -e -registry_user=mrcyjanek -cache_name="$1" -cache_key="$2" -path_to_file="$3.xz" -basename="$(basename $path_to_file)" - -curl "https://git.mrcyjanek.net/api/packages/mrcyjanek/generic/monero_c/${cache_name}-${cache_key}/${basename}" > /tmp/cache -if [[ "xpackage does not exist" == "x$(head -1 /tmp/cache 2>/dev/null)" ]]; -then - echo "Cache miss '$1' '$2' '$basename'" - rm /tmp/cache - exit 0 -else - echo "Cache hit '$1' '$2' '$basename'" -fi - -mkdir -p $path_to_file -rm -rf $path_to_file -mv /tmp/cache $path_to_file -unxz $path_to_file || rm $path_to_file - -if [[ -f "$3" ]]; -then - touch /tmp/cache_hit_$(echo "$3" | md5sum | awk '{ print $1 }') -fi
\ No newline at end of file |
