Skip to content

ci: add Nix build#1

Open
Manuthor wants to merge 18 commits intodevelopfrom
ci/add_packaging
Open

ci: add Nix build#1
Manuthor wants to merge 18 commits intodevelopfrom
ci/add_packaging

Conversation

@Manuthor
Copy link
Copy Markdown

No description provided.

@Manuthor Manuthor force-pushed the ci/add_packaging branch 2 times, most recently from 6c70ef7 to 88626d9 Compare April 14, 2026 05:31
Manuthor added 17 commits April 14, 2026 07:56
- Add .github/reusable_scripts/get_openssl_binaries.sh stub (auth_server
  uses vendored OpenSSL so no pre-built binaries are needed)
- Remove unused tokio dev-dep from auth_client
- Remove unused base32 dep from auth_server
- Add .cargo/audit.toml ignoring RUSTSEC-2023-0071 (rsa Marvin Attack –
  transitive via sqlx-mysql, no upstream fix available)
- Fix packaging.yml: remove incorrect github.event_name == 'workflow_call'
  job conditions (inside a reusable workflow event_name is the original
  caller's event, not 'workflow_call'); publish-release now only runs on
  tag pushes
- Remove diskUsage=true from nix/docker.nix (not supported in pinned nixpkgs)
- Remove --option substituters "" from package_common.sh and nix.sh to allow
  binary cache (cache.nixos.org), preventing FTP download of file-5.41 which
  is blocked on GitHub Actions
- Update macOS arm64 static binary hash to 94ff939c...
- Add cargo install --locked cargo-packager step for macOS in packaging.yml
- Remove unused LINK_EXPLICIT variable in nix.sh (shellcheck SC2034)
- Remove 37 unused [workspace.dependencies] entries
- Fix cosmian_logger: git dep -> crates.io 0.7.0 (required for publish)
- Fix auth_client: add version = "1.0.0" beside path dep (required for publish)
- Fix client description: replace em-dash with ASCII dash
- Apply cargo fmt to server sources
… signing

- nix/auth-server.nix: on aarch64 Linux, pkgs234 (nixpkgs 22.05) defaults to
  gcc-9.3.0 which aws-lc-sys v0.39.1 rejects (GCC PR#95189 memcmp bug on aarch64).
  Use platform.gcc11 for CC/CXX exports in buildPhase on aarch64 — still glibc
  2.34 compatible but without the bug. Fixes docker-ubuntu-24.04-arm,
  ubuntu-24.04-arm-static, ubuntu-24.04-arm-dynamic CI failures.

- package_common.sh: build_deb/build_rpm set export HOME=${TMPDIR} for Cargo,
  which moves the GPG keyring to a fresh empty directory different from where
  crazy-max/ghaction-import-gpg imported the signing key. Fix gpg_sign_file() to
  re-import $GPG_SIGNING_KEY with passphrase-fd/loopback pinentry in the current
  HOME before signing. Fixes ubuntu-24.04-{static,dynamic} CI GPG failures.

- package_dmg.sh: same HOME issue; re-import $GPG_SIGNING_KEY with passphrase
  before the DMG signing loop. Fixes macos-15-{static,dynamic} CI GPG failures.
smoke_test_rpm.sh uses rpm2cpio (from the rpm package) and cpio to
extract the RPM archive for inspection, but nix.sh only provided
binutils, file, and coreutils to the smoke-test nix-shell.

Add rpm and cpio to the -p list so rpm2cpio is available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant