Skip to content

Commit cba0563

Browse files
authored
🐛 fix: Reproducibility check (#1514)
1 parent 1d8855b commit cba0563

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/code-qualitiy.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Check maven pom quality
5858
run: mvn org.kordamp.maven:pomchecker-maven-plugin:1.9.0:check-maven-central -D"checker.release=false"
5959

60-
reproducilbilty:
60+
reproducibility:
6161
runs-on: ubuntu-latest
6262
defaults:
6363
run:
@@ -94,8 +94,14 @@ jobs:
9494
java-version: '17'
9595
distribution: 'temurin'
9696

97-
- name: Build with Maven
98-
run: mvn --batch-mode --update-snapshots clean install
97+
- name: First build
98+
run: mvn --batch-mode --update-snapshots clean package -DskipTests
99+
100+
- name: Save checksums of first build
101+
run: sha256sum target/*.jar > /tmp/checksums.txt
102+
103+
- name: Rebuild
104+
run: mvn --batch-mode clean package -DskipTests
99105

100-
- name: Run reproducibility check
101-
run: mvn clean install
106+
- name: Compare JARs from both builds
107+
run: sha256sum -c /tmp/checksums.txt

0 commit comments

Comments
 (0)