2222 CARGO_TERM_COLOR : always
2323 DOCKER_IMAGE_NAME_URL : https://ghcr.io/${{ github.repository_owner }}/reth
2424 DOCKER_OP_IMAGE_NAME_URL : https://ghcr.io/${{ github.repository_owner }}/op-reth
25- DEB_SUPPORTED_TARGETS : x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu riscv64gc-unknown-linux-gnu
2625
2726jobs :
2827 dry-run :
7473 os : ubuntu-24.04
7574 profile : maxperf
7675 allow_fail : false
77- - target : x86_64-unknown-linux-gnu
78- os : ubuntu-24.04
79- profile : reproducible
80- allow_fail : false
8176 - target : aarch64-unknown-linux-gnu
8277 os : ubuntu-24.04
8378 profile : maxperf
@@ -124,34 +119,12 @@ jobs:
124119 echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version)" >> $GITHUB_ENV
125120
126121 - name : Build Reth
127- if : ${{ !(matrix.build.binary == 'op-reth' && matrix.configs.profile == 'reproducible') }}
128- run : |
129- if [[ "${{ matrix.build.binary }}" == "reth" && "${{ matrix.configs.profile }}" == "reproducible" ]]; then
130- make build-reth-reproducible
131- else
132- make PROFILE=${{ matrix.configs.profile }} ${{ matrix.build.command }}-${{ matrix.configs.target }}
133- fi
134-
135- - name : Build Reth deb package
136- if : ${{ matrix.build.binary == 'reth' && contains(env.DEB_SUPPORTED_TARGETS, matrix.configs.target) }}
137- run : make build-deb-${{ matrix.configs.target }} PROFILE=${{ matrix.configs.profile }} VERSION=${{ needs.extract-version.outputs.VERSION }}
138-
122+ run : make PROFILE=${{ matrix.configs.profile }} ${{ matrix.build.command }}-${{ matrix.configs.target }}
139123 - name : Move binary
140124 run : |
141125 mkdir artifacts
142126 [[ "${{ matrix.configs.target }}" == *windows* ]] && ext=".exe"
143-
144- # Handle reproducible builds which always target x86_64-unknown-linux-gnu
145- if [[ "${{ matrix.build.binary }}" == "reth" && "${{ matrix.configs.profile }}" == "reproducible" ]]; then
146- mv "target/x86_64-unknown-linux-gnu/${{ matrix.configs.profile }}/${{ matrix.build.binary }}${ext}" ./artifacts
147- else
148- mv "target/${{ matrix.configs.target }}/${{ matrix.configs.profile }}/${{ matrix.build.binary }}${ext}" ./artifacts
149- fi
150-
151- # Move deb packages if they exist
152- if [[ "${{ matrix.build.binary }}" == "reth" && "${{ env.DEB_SUPPORTED_TARGETS }}" == *"${{ matrix.configs.target }}"* ]]; then
153- mv "target/${{ matrix.configs.target }}/${{ matrix.configs.profile }}/${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}-${{ matrix.configs.profile }}.deb" ./artifacts
154- fi
127+ mv "target/${{ matrix.configs.target }}/${{ matrix.configs.profile }}/${{ matrix.build.binary }}${ext}" ./artifacts
155128
156129 - name : Configure GPG and create artifacts
157130 env :
@@ -161,12 +134,9 @@ jobs:
161134 export GPG_TTY=$(tty)
162135 echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --batch --import
163136 cd artifacts
164- tar -czf ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}.tar.gz ${{ matrix.build.binary }}*[!.deb]
137+ tar -czf ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}.tar.gz ${{ matrix.build.binary }}*
165138 echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}.tar.gz
166- if [[ -f "${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}-${{ matrix.configs.profile }}.deb" ]]; then
167- echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}-${{ matrix.configs.profile }}.deb
168- fi
169- mv *tar.gz* *.deb* ..
139+ mv *tar.gz* ..
170140 shell : bash
171141
172142 - name : Upload artifact
@@ -183,20 +153,6 @@ jobs:
183153 name : ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}.tar.gz.asc
184154 path : ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}.tar.gz.asc
185155
186- - name : Upload deb package
187- if : ${{ github.event.inputs.dry_run != 'true' && matrix.build.binary == 'reth' && contains(env.DEB_SUPPORTED_TARGETS, matrix.configs.target) }}
188- uses : actions/upload-artifact@v4
189- with :
190- name : ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}-${{ matrix.configs.profile }}.deb
191- path : ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}-${{ matrix.configs.profile }}.deb
192-
193- - name : Upload deb package signature
194- if : ${{ github.event.inputs.dry_run != 'true' && matrix.build.binary == 'reth' && contains(env.DEB_SUPPORTED_TARGETS, matrix.configs.target) }}
195- uses : actions/upload-artifact@v4
196- with :
197- name : ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}-${{ matrix.configs.profile }}.deb.asc
198- path : ${{ matrix.build.binary }}-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}-${{ matrix.configs.profile }}.deb.asc
199-
200156 draft-release :
201157 name : draft release
202158 runs-on : ubuntu-latest
0 commit comments