armbian-build/.github/workflows/check-integrity.yml
Igor Pečovnik bbc57cb530
Action script for checking integrity of images (#3915)
* Action script for checking integrity of images

* Remove duplicate line
2022-06-19 19:21:39 +02:00

36 lines
765 B
YAML

name: Check images integrity
on:
workflow_dispatch:
jobs:
Update:
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