mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-10 17:04:10 +00:00
bb3b8c4ecc
Pay: stop reddening the amount while typing — requesting more than you hold is a valid request, so the digits stay black. Pressing Pay without enough funds now shakes and briefly flashes the amount red and buzzes the phone, then settles back. Bigger scan-to-pay puck. Settings: the username "@" moves inside the field as the "@yourname" placeholder (a leading "@" the user types is stripped). Mixnet routing is shortened to "All traffic" and flagged in the privacy color. The Build row links to GitHub releases. Network reads "MW + Nym mixnet + nostr". The Nym third-party row shows the linked SDK version instead of "socks5". Wallet: expose GRIM's native by-hand slatepack flow as an advanced "Slatepacks" page — paste to receive/pay/finalize, or create a payment slatepack to hand over. The fallback for when a payment can't ride a @username. CI: fix the red GitHub builds. nym-sdk is a path dep on ../nym, which the runners didn't have. A composite action materializes the pinned upstream nym commit plus Goblin's small Android webpki patch before each build; aws-lc-sys uses prebuilt NASM on native Windows. Builds: strip release binaries, dropping ~17 MB of debug symbols from the desktop build.
109 lines
4.4 KiB
YAML
109 lines
4.4 KiB
YAML
# Release builds on native runners — one per platform, no cross-compilation
|
|
# (nokhwa's camera backends want each platform's own SDK; see NEXT-STEPS judgment).
|
|
#
|
|
# Manually triggered (Actions → Release → Run workflow) against an existing tag
|
|
# until a run has been validated end-to-end; then this can move to a tag trigger.
|
|
# Android is built locally via scripts/android.sh for now — the gradle `ci`
|
|
# flavor expects maven credentials this repository does not carry.
|
|
name: Release
|
|
|
|
on:
|
|
# macOS is DEFERRED until Linux/Windows/Android are polished — so this is
|
|
# manual-dispatch only for now (no auto-build on release publish). When macOS
|
|
# is back on the table, re-add `release: { types: [published] }` here and the
|
|
# macOS job will attach a universal build to each release automatically.
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: "Existing release tag to build and upload artifacts to (e.g. build27)"
|
|
required: true
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
TAG: ${{ inputs.tag || github.event.release.tag_name }}
|
|
# aws-lc-sys (via nym-sdk) needs NASM on native Windows; use its prebuilt NASM.
|
|
AWS_LC_SYS_PREBUILT_NASM: 1
|
|
|
|
jobs:
|
|
linux:
|
|
name: Linux x86_64
|
|
runs-on: ubuntu-latest
|
|
# Built locally and uploaded with the release; only run on manual dispatch.
|
|
if: github.event_name == 'workflow_dispatch'
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.tag || github.event.release.tag_name }}
|
|
submodules: recursive
|
|
- uses: ./.github/actions/fetch-nym
|
|
- name: Build
|
|
shell: bash
|
|
run: GOBLIN_BUILD="${TAG#build}" cargo build --release
|
|
- name: Package
|
|
run: |
|
|
tar -C target/release -czf "goblin-$TAG-linux-x86_64.tar.gz" goblin
|
|
sha256sum "goblin-$TAG-linux-x86_64.tar.gz" > "goblin-$TAG-linux-x86_64-sha256sum.txt"
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ inputs.tag || github.event.release.tag_name }}
|
|
files: |
|
|
goblin-${{ inputs.tag || github.event.release.tag_name }}-linux-x86_64.tar.gz
|
|
goblin-${{ inputs.tag || github.event.release.tag_name }}-linux-x86_64-sha256sum.txt
|
|
|
|
windows:
|
|
name: Windows x86_64 (MSVC)
|
|
runs-on: windows-latest
|
|
# Built locally and uploaded with the release; only run on manual dispatch.
|
|
if: github.event_name == 'workflow_dispatch'
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.tag || github.event.release.tag_name }}
|
|
submodules: recursive
|
|
- uses: ./.github/actions/fetch-nym
|
|
- name: Build
|
|
shell: bash
|
|
run: GOBLIN_BUILD="${TAG#build}" cargo build --release
|
|
- name: Package
|
|
shell: bash
|
|
run: |
|
|
7z a "goblin-$TAG-win-x86_64.zip" ./target/release/goblin.exe
|
|
sha256sum "goblin-$TAG-win-x86_64.zip" > "goblin-$TAG-win-x86_64-sha256sum.txt"
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ inputs.tag || github.event.release.tag_name }}
|
|
files: |
|
|
goblin-${{ inputs.tag || github.event.release.tag_name }}-win-x86_64.zip
|
|
goblin-${{ inputs.tag || github.event.release.tag_name }}-win-x86_64-sha256sum.txt
|
|
|
|
macos:
|
|
name: macOS universal
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ inputs.tag || github.event.release.tag_name }}
|
|
submodules: recursive
|
|
- uses: ./.github/actions/fetch-nym
|
|
- name: Build both architectures
|
|
run: |
|
|
export GOBLIN_BUILD="${TAG#build}"
|
|
rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
|
cargo build --release --target aarch64-apple-darwin
|
|
cargo build --release --target x86_64-apple-darwin
|
|
- name: Universal binary + package
|
|
run: |
|
|
lipo -create -output goblin \
|
|
target/aarch64-apple-darwin/release/goblin \
|
|
target/x86_64-apple-darwin/release/goblin
|
|
zip "goblin-$TAG-macos-universal.zip" goblin
|
|
shasum -a 256 "goblin-$TAG-macos-universal.zip" > "goblin-$TAG-macos-universal-sha256sum.txt"
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ inputs.tag || github.event.release.tag_name }}
|
|
files: |
|
|
goblin-${{ inputs.tag || github.event.release.tag_name }}-macos-universal.zip
|
|
goblin-${{ inputs.tag || github.event.release.tag_name }}-macos-universal-sha256sum.txt
|