From 615816d311a0e3400d6833d903aaaf766a8d0289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobiasz=20K=C4=99dzierski?= Date: Wed, 8 Jul 2020 14:13:08 +0200 Subject: [PATCH] Add checksums --- .github/workflows/build_wheels.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index befe95cb7feb..48980d6341ef 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -53,6 +53,12 @@ jobs: - name: Build source working-directory: ./sdks/python run: python setup.py sdist --formats=gztar,zip + - name: Add checksums + working-directory: ./sdks/python/dist + run: | + for file in *.zip *.tar.gz; do + sha512sum $file > ${file}.sha512 + done - name: Unzip source working-directory: ./sdks/python run: unzip dist/$(ls dist | grep .zip | head -n 1) @@ -128,6 +134,15 @@ jobs: CIBW_BEFORE_BUILD: pip install cython run: cibuildwheel --print-build-identifiers && cibuildwheel --output-dir wheelhouse shell: bash + - name: install sha512sum on MacOS + if: startsWith(matrix.os, 'macos') + run: brew install coreutils + - name: Add checksums + working-directory: apache-beam-source/wheelhouse/ + run: | + for file in *.whl; do + sha512sum $file > ${file}.sha512 + done - name: Upload wheels as artifacts uses: actions/upload-artifact@v2 with: