Skip to content

Commit

Permalink
chore(build): Add checksums to things not known to dist checksum macro
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Apr 17, 2024
1 parent 6a76754 commit 0b43ad8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -70,6 +70,7 @@ jobs:
if: ${{ matrix.configuration[0] == 'static' }}
run: |
cp sile sile-${{ env.CARCH }}
sha256sum sile-${{ env.CARCH }} | tee -a sile-${{ env.VERSION }}.sha256.txt
- name: Upload static binary artifact
if: ${{ matrix.configuration[0] == 'static' && !contains(github.ref, 'refs/tags/v') }}
uses: actions/upload-artifact@v4
Expand All @@ -86,6 +87,7 @@ jobs:
sile-${{ env.VERSION }}.zip
sile-${{ env.VERSION }}.tar.zst
sile-${{ env.CARCH }}
sile-${{ env.VERSION }}.sha256.txt
build-nix:
runs-on: ubuntu-22.04
Expand Down
15 changes: 15 additions & 0 deletions build-aux/sile_dist_checksums.m4
@@ -0,0 +1,15 @@
AC_DEFUN_ONCE([SILE_DIST_CHECKSUMS], [
QUE_DIST_CHECKSUMS
AM_COND_IF([DEVELOPER_MODE], [
AX_ADD_AM_MACRO([dnl
checksum_dist += \
; \$(SHA256SUM) sile-\$(VERSION).pdf |\
\$(TEE) -a \$(distdir).sha256.txt
])dnl
])
])

1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -9,6 +9,7 @@ QUE_GIT_VERSION
QUE_TRANSFORM_PACKAGE_NAME
QUE_DEVELOPER_MODE
QUE_DIST_CHECKSUMS
SILE_DIST_CHECKSUMS

# Checks for programs.
AC_PROG_CC
Expand Down

0 comments on commit 0b43ad8

Please sign in to comment.