Skip to content

Commit

Permalink
Merge pull request fedimint#5812 from dpc/24-08-07-ci-checksums-fix
Browse files Browse the repository at this point in the history
fix(ci): sign.sh generates wrong checksums
  • Loading branch information
dpc authored Aug 8, 2024
2 parents ee184de + 9cdc110 commit 374e294
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ jobs:
cachix push fedimint -c 8 -j 8 $(nix-store --query --references $(readlink -f result)) $(readlink -f result)
cachix pin fedimint "fedimint-release-$bin:$BUILD_ID" $(readlink -f result)
fi
nix bundle --bundler .# .#$bin -o "bins/$bin-$BUILD_ID" && sha256sum "bins/$bin-$BUILD_ID"
# Note: keep in sync with sign.sh
nix bundle --bundler .# ".#$bin" -o "bins/$bin-$BUILD_ID" && sha256sum "bins/$bin-$BUILD_ID"
done
- name: Check version ${{ matrix.build.bins }}
Expand Down
20 changes: 10 additions & 10 deletions releases/v0.4.0-x86_64-linux.SHA256SUMS
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
6a853b73755edfd5649bc46335ff7308f0eee4e9e25a9d62cab1c6b026d43def v0.4.0-x86_64-linux/fedimint-cli
730d8450e5e4c4f2ca3176f7f44ab44b8c019390f973e5d5916d37360c4977cc v0.4.0-x86_64-linux/fedimint-dbtool
3d0bdd11bf0e9e55925194b7f0c14e25cadcf10dfe0ed89e8a6fd79a49d05ddc v0.4.0-x86_64-linux/fedimintd
5e0c912420754ef986353106f685e242ffe1858b01986d166b8c4da141f6448b v0.4.0-x86_64-linux/gateway-cli
1007fca9295bab2ead1274522b490c33ed1fb58f1e3e1a9afc26f22ae4016524 v0.4.0-x86_64-linux/gatewayd
ae499530bd08653327c0fd2f4293c017e4df3d12a4c62dfd75bf35bdc98c4d9d v0.4.0-x86_64-linux/nixos/fedimint-cli
8b359a816a8d866ed35caaa286b05bb63581a0ad8554374454df1959aaf95d56 v0.4.0-x86_64-linux/nixos/fedimint-dbtool
0eed8de41a7243e66201fc29b1a66a92095bf672002be4025bb507aae9172301 v0.4.0-x86_64-linux/nixos/fedimintd
4eb2ed656d7793832d6df2c7b33febabd58a49bb6fe90ca78a9f66ae27d65b09 v0.4.0-x86_64-linux/nixos/gateway-cli
04c6a7446655eeaf682f1c9c09e9210d8de4ae01e9e1da5df00c43aa5c79f0d7 v0.4.0-x86_64-linux/nixos/gatewayd
bab6af83cbe3841e47d6f06242626d67a4d38a3c979c7b132768851cf9f4d19d v0.4.0-x86_64-linux/fedimint-cli
ca9e4e57c5766d7fe4f69616af4a7916d498f748bea0d846c443a7a343730b2c v0.4.0-x86_64-linux/fedimint-dbtool
d0849bbc59c9f5cfa9d98f2e6e4665b410b88ecb0f2a4fb5e4965ae9ca17cc03 v0.4.0-x86_64-linux/fedimintd
7c6a7f4bbfe813b2243e60a41cc9ee29e5b524721bbb7045fd16723a3bb8b74e v0.4.0-x86_64-linux/gateway-cli
a444790bef81616a040a2fd795857083d311097ce17748c332bb5f2b7f812bc7 v0.4.0-x86_64-linux/gatewayd
5dda65e3260e22ed761969bd79dc4407375588303b366de0587d9857b5dff3c7 v0.4.0-x86_64-linux/nixos/fedimint-cli
2c3d4086ee05c8ce72ee36e036513244ce802d326ce22679a94ece4a92dd33f3 v0.4.0-x86_64-linux/nixos/fedimint-dbtool
2ac5afee3e642f012efff407a903487dd69aabc6bf356128693753693ef4b314 v0.4.0-x86_64-linux/nixos/fedimintd
4f565137ef3e9b79cbb99c031dc8b57d70d233a5ef263e247df938d42f379bc8 v0.4.0-x86_64-linux/nixos/gateway-cli
94afe7e2a47fb242397287abbed84767cadf59094108db747b4caf9b0f991ecc v0.4.0-x86_64-linux/nixos/gatewayd
26 changes: 13 additions & 13 deletions releases/v0.4.0-x86_64-linux.SHA256SUMS.asc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEkclCN9mfzyRRBSNn0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cjfB5AZhp50PG0JefygeGunBChDG5oKE0KjCOFPhKGbBYU3v35d1lJo
c5BSaojoAUCsK2QZzkjhKuTzKXHwfoKc/sTAgOA8wDjgXREoBphdAjnPqn4iZrYu
r/wUvzG+cPnqxa+FXu58ZQ//Ep6QluV+VEyzGqBctcPcNWXQ+m5I3jMaAvrGCXBR
quwDsS3nFOPfXOBwNSpUUY+/Qq2Cxbxw7oHgVdSIgqmyNWT2K/QcKJW3JDRiGffy
ZdhfMUwtMdEBkMlXoZozWIDZCfJtWNYW6igzi7fQ2xw0KnjxAxHBhrnKgRLX/Fza
BZddpFT2dclRu3fAyyGZ6S/BZLqqpQcMlueth0sSUasT2Zro2/aAZMbywYuyEGhx
5dxfvcQo4m0l8HdhP05DCjnHCA7rx+IBdSUVy6rpdAursqXAvlI=
=2y/G
-----END PGP SIGNATURE-----
10 changes: 5 additions & 5 deletions scripts/release/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ fi

# TODO: add gateway-cln-extension once available as an output
for bin in fedimintd fedimint-cli fedimint-dbtool gateway-cli gatewayd ; do
repo="git+file:${REPO_ROOT}?ref=refs/tags/${tag}"
# We need to use rev= , see https://github.com/NixOS/nix/issues/11266
# NOTE: '^{commit}' is not a mistake, but git rev-parse syntaxh
rev="$(git rev-parse "${tag}^{commit}")"
repo="git+file:${REPO_ROOT}?rev=${rev}"
out="$repo#${bin}"
nix build "$out"
mkdir -p "${release_dir}/nixos"
cp -f result/bin/* "${release_dir}/nixos/"

# skip bundles on Darwin (not supported)
if [[ "$system" != *"-darwin" ]]; then
# TODO: re-export pinned bundlers from our own flake, so they are pinned at the release time
# and use the bundler exported in the release: '--bundler git+file:?ref/targs/'
# TODO: switch back to upstream after https://github.com/matthewbauer/nix-bundle/pull/103 is available
nix bundle --bundler "github:dpc/bundlers?branch=24-02-21-tar-deterministic&rev=e8aafe89a11ae0a5f3ce97d1d7d0fcfb354c79eb" "$out" -o result
nix bundle --bundler "$repo" "$out" -o result
cp -f -L result "${release_dir}/$bin"
fi
done
Expand Down

0 comments on commit 374e294

Please sign in to comment.