mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-28 10:41:12 +00:00
as these workflows are scheduled periodically, and if they fail, notifications are sent to the repo's owner. to minimize the surprises to the contributors using github, let's disable these workflows on fork repos. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
36 lines
881 B
YAML
36 lines
881 B
YAML
name: Check Reproducible Build
|
|
|
|
on:
|
|
schedule:
|
|
# 5AM every friday
|
|
- cron: '0 5 * * FRI'
|
|
|
|
permissions: {}
|
|
|
|
env:
|
|
BUILD_MODE: release
|
|
jobs:
|
|
build-a:
|
|
uses: ./.github/workflows/build-scylla.yaml
|
|
with:
|
|
build_mode: release
|
|
build-b:
|
|
uses: ./.github/workflows/build-scylla.yaml
|
|
with:
|
|
build_mode: release
|
|
compare-checksum:
|
|
if: github.repository == 'scylladb/scylladb'
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- build-a
|
|
- build-b
|
|
steps:
|
|
- env:
|
|
CHECKSUM_A: ${{needs.build-a.outputs.md5sum}}
|
|
CHECKSUM_B: ${{needs.build-b.outputs.md5sum}}
|
|
run: |
|
|
if [ $CHECKSUM_A != $CHECKSUM_B ]; then \
|
|
echo "::error::mismatched checksums: $CHECKSUM_A != $CHECKSUM_B"; \
|
|
exit 1; \
|
|
fi
|