Add static musl binaries to Releases - #60
Conversation
|
6dcd1bf is final and signed 😇 |
From Google AI build aarch64 rust binary from git repository ... Is there any freely available 3rd party service (like gitpod.com in the past) that would produce the final binary for me?https://github.com/jsarenik/hal I'll be happy to add anything needed to the repository to make GitHub do it. Help me please. Update AArch64 build workflow for version tagging Yes. To Releases please Update workflow for static AArch64 binary build Make the binary statically built for musl-aarch64 please. Update GitHub Actions workflow for ARM64 build Added a step to patch the jobserver dependency for compatibility and modified the build command to allow for the updated patch. Update actions/checkout from v4 to v5 Upgrade action-gh-release from v2 to v3 Release a few resulting binaries
|
The second part is https://share.google/aimode/x2xMVeamJgxaYHQA4 |
|
Part 3 from Copilot: I would like commit 148dd7f to be signed. How to do that? You can see from the commit details that the verification status shows Option 1: Amend the Commit and Re-sign (Recommended)If the commit is on a branch you control and hasn't been pushed to a shared repository, you can amend and re-sign it: git commit --amend -SThis will:
Then force-push (if needed): git push --force-with-leaseOption 2: Create a Signed Commit on TopIf you want to keep the original commit as-is, create a new signed commit: git commit --allow-empty -m "Sign previous commit" -S
git pushPrerequisites for SigningMake sure you have:
Note: If this commit has already been pushed and merged into a shared branch, re-signing would require rewriting history, which isn't recommended for shared branches. Would you like help setting up GPG signing for future commits? I have my private key on OpenKeychain Android app but would like to sign in git inside Termux. How? You'll need to bridge GPG between OpenKeychain and Termux. Here's how: Setup GPG in Termux with OpenKeychain1. Install GPG and Required Tools in Termuxpkg install gnupg2. Install OpenKeychain IntegrationInstall pkg install gpg-agent3. Configure Termux to Use OpenKeychain's GPG SocketThe key is to use OpenKeychain's IPC socket. Add this to your # Create the config if it doesn't exist
mkdir -p ~/.gnupg
cat >> ~/.gnupg/gpg-agent.conf << 'EOF'
pinentry-program /system/bin/pinentry-gnupg
EOF4. Import Your Key (or Use OpenKeychain Directly)Option A: Export key from OpenKeychain and import to Termux
Option B: Use OpenKeychain's GPG provider directly 5. Configure Git to Sign with GPG# Get your key ID from OpenKeychain
gpg --list-secret-keys
# Configure Git
git config --global user.signingkey YOUR_KEY_ID
git config --global commit.gpgsign true6. Test Signingcd /path/to/your/repo
git commit --amend -SAlternative: Use SSH Signing (Simpler)If OpenKeychain integration is complex, Git now supports SSH signing (Git 2.34+), which might be easier: # Generate SSH key in Termux or import from storage
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519
# Configure Git for SSH signing
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub
git config --global commit.gpgsign true
# Add your SSH public key to GitHub (not as a deploy key, but as a signing key)TroubleshootingIf you hit permission issues: chmod 700 ~/.gnupg
chmod 600 ~/.gnupg/*If GPG agent won't start: gpgconf --kill gpg-agent
gpg-agent --daemonWhat approach would you prefer — GPG with OpenKeychain or SSH signing? SSH signing is typically simpler in Termux. OK. I did the alternative using SSH. The commit still shows as unverified on GitHub. How to fix that? To get your SSH-signed commits to show as verified on GitHub, you need to add your SSH public key to GitHub as a signing key (not a deploy key). Here's how: 1. Get Your Public Keycat ~/.ssh/id_ed25519.pubCopy the entire output (starts with 2. Add It to GitHub as a Signing Key
3. Verify Your Git ConfigurationMake sure these are set correctly: git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub
git config --global commit.gpgsign true4. Amend and Re-sign the Commitcd /path/to/jsarenik/hal
git commit --amend -S --no-edit
git push --force-with-lease5. Check VerificationThe commit should now show a Verified badge on GitHub (may take a moment to refresh). Common IssuesThe key type matters! Make sure you added it as a "Signing Key" in GitHub, not an "Authentication Key" or "Deploy key". Still not showing as verified?
Try amending the commit now—does it show as verified? |
Trial and error but it works for me now.
HTH
https://github.com/jsarenik/hal/releases