Automatic update of versions #116
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Reproducible Package Applications | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'reproducible-package/**' | |
- '!reproducible-package/README.md' | |
- '.github/workflows/reproducible-package.yml' | |
jobs: | |
test-app: | |
name: Test app | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: ["armv7hf", "aarch64"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-buildx-action@v3 | |
- name: Build and test reproducible package application | |
run: | | |
found_error=n | |
cd reproducible-package | |
# Make use of utility script and test it at the same time! | |
./reproducible_package.sh build ${{ matrix.arch }} | |
# Check that standard and reproducible packages diff | |
printf "Compare standard package to reproducible package\n" | |
if cmp build1/*.eap build2/*.eap; then | |
printf "Error: Packages are identical which was not expected\n" | |
found_error=y | |
else | |
printf "OK: The packages diff as expected\n" | |
fi | |
# Check that the two reproducible packages are identical | |
printf "Compare two reproducible packages\n" | |
if cmp build2/*.eap build3/*.eap; then | |
printf "OK: The packages are identical as expected\n" | |
else | |
printf "Error: The reproducible packages diff which was not expected\n" | |
found_error=y | |
fi | |
# Cleanup | |
# Make use of utility script and test it at the same time! | |
printf "Run cleanup of build directories and images\n" | |
./reproducible_package.sh clean ${{ matrix.arch }} | |
[ "$found_error" = n ] || exit 1 |