Fix narinfo check script
This commit is contained in:
parent
8cf4a5bf2f
commit
f11d0381e3
1 changed files with 5 additions and 2 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -51,7 +51,7 @@ jobs:
|
||||||
- plover-plugin-rkb1-hid
|
- plover-plugin-rkb1-hid
|
||||||
- plover-dict-didoesdigital
|
- plover-dict-didoesdigital
|
||||||
- miifox-net
|
- miifox-net
|
||||||
- old-homeage
|
- old-homepage
|
||||||
- clean-s3-cache
|
- clean-s3-cache
|
||||||
- python-instagram
|
- python-instagram
|
||||||
- moa
|
- moa
|
||||||
|
@ -77,11 +77,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NIX_CACHE_KEY: ${{secrets.NIX_CACHE_KEY}}
|
NIX_CACHE_KEY: ${{secrets.NIX_CACHE_KEY}}
|
||||||
AWS_CREDENTIALS: ${{secrets.AWS_CREDENTIALS}}
|
AWS_CREDENTIALS: ${{secrets.AWS_CREDENTIALS}}
|
||||||
|
- name: install jq
|
||||||
|
run: sudo apt install jq
|
||||||
- name: Build ${{ matrix.package }}
|
- name: Build ${{ matrix.package }}
|
||||||
run: |
|
run: |
|
||||||
DRV_PATH=$(nix-instantiate -E '(import ./. {}).${{ matrix.package }}')
|
DRV_PATH=$(nix-instantiate -E '(import ./. {}).${{ matrix.package }}')
|
||||||
|
OUT_PATH=$(nix show-derivation $DRV_PATH | jq -r ".\"$DRV_PATH\".outputs.out.path")
|
||||||
# check if we already built it
|
# check if we already built it
|
||||||
NARINFO=$(echo $DRV_PATH | sed 's|/| |g' | sed 's|-| |g' | awk '{print $3}')
|
NARINFO=$(echo $OUT_PATH | sed 's|/| |g' | sed 's|-| |g' | awk '{print $3}')
|
||||||
if curl --output /dev/null --silent --head --fail "https://f000.backblazeb2.com/file/cache-chir-rs/$NARINFO.narinfo"; then
|
if curl --output /dev/null --silent --head --fail "https://f000.backblazeb2.com/file/cache-chir-rs/$NARINFO.narinfo"; then
|
||||||
echo "${{ matrix.package }} already built. Skipping"
|
echo "${{ matrix.package }} already built. Skipping"
|
||||||
else
|
else
|
||||||
|
|
Reference in a new issue