armbian-build/.github/workflows/check-integrity.yml
Igor Pečovnik 9ef2f5ac40
Clean GitHub actions (#4065)
* Cleaning actions

* Update

* Update

* Update

* Update
2022-08-12 14:29:31 +02:00

42 lines
843 B
YAML

name: Check images integrity
#
# Manually checks images integrity
#
on:
workflow_dispatch:
jobs:
Update:
permissions:
contents: none
name: Check images integrity
runs-on: [fast, igor]
if: ${{ github.repository_owner == 'Armbian' }}
steps:
- uses: igorpecovnik/freespace@main
- name: Install dependencies
run: |
sudo apt-get -y -qq install parallel
- name: Mount test folders
run: |
sudo mkdir -p dl
sudo mount nas:/tank/armbian/dl.armbian.com/ dl
- name: Integrity test in parallel
run: |
FILES=$(find dl -type f -name "*.xz")
for FILE in ${FILES[@]}
do
echo "$FILE"
done | sudo --preserve-env parallel --jobs 18 '
xz -t {}
'
sudo umount dl