Some checks failed
Test / rust-fmt-check (pull_request) Failing after 14s
Test / rust-clippy (pull_request) Failing after 16s
Test / rust-tests (pull_request) Failing after 18s
Test / frontend-typecheck (pull_request) Successful in 1m27s
Test / frontend-tests (pull_request) Successful in 1m28s
PR Review Automation / review (pull_request) Successful in 3m4s
Complete sanitization pass to ensure consistency: **1. Repository/Project Name Changes:** - trcaa-devops_investigation → tftsr-devops_investigation (everywhere) - gogs.trcaa.com → gogs.tftsr.com (all URLs) - ollama-ui.trcaa.com → ollama-ui.tftsr.com **2. Internal CI URLs (must use 172.0.0.29):** - gitea.tftsr.com:3000 → 172.0.0.29:3000 in: - AGENTS.md - README.md - docs/architecture/README.md - docs/wiki/*.md - CI runners cannot reach external DNS **3. Code Simplifications:** - MSIGenAI/TFTSRGenAI → GenAI (src-tauri/src/ai/openai.rs) - Cleaner comments without org-specific references **4. Build System Updates:** - Makefile: GH_TOKEN → GOGS_TOKEN, GH_REPO → GOGS_REPO - Commented out GitHub release upload commands - Fixed lib name: tftsr_lib → trcaa_lib (src/main.rs) **5. Documentation Cleanup:** - CLAUDE.md: Fixed wiki URL, Woodpecker→Gitea Actions - Removed PLAN.md, SECURITY_AUDIT.md (not needed in git) - Removed hackathon docs (HACKATHON-*.md) - Removed v1.0.5/7/8 summary docs (superseded) **6. Preserved:** - TRCAA (all caps) = application name (correct!) - trcaa package name in Cargo.toml (correct!) - trcaa_lib library name (correct!) **Test Results:** 308 Rust + 92 frontend tests passing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
GOGS_REPO := msicie/apollo_nxt-tftsr
|
|
TAG ?= v0.1.0-alpha
|
|
TARGET := aarch64-unknown-linux-gnu
|
|
|
|
# Build linux/arm64 release artifact natively inside a Docker container,
|
|
# then upload to the GitHub release for TAG.
|
|
.PHONY: release-arm64
|
|
release-arm64: build-arm64 upload-arm64
|
|
|
|
.PHONY: build-arm64
|
|
build-arm64:
|
|
docker run --rm \
|
|
--platform linux/arm64 \
|
|
-v "$(CURDIR):/workspace" \
|
|
-w /workspace \
|
|
rust:1.88-slim \
|
|
bash -c ' \
|
|
apt-get update -qq && \
|
|
apt-get install -y -qq libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev \
|
|
libayatana-appindicator3-dev librsvg2-dev patchelf pkg-config curl perl && \
|
|
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
|
apt-get install -y nodejs && \
|
|
npm ci --legacy-peer-deps && \
|
|
rustup target add $(TARGET) && \
|
|
cargo install tauri-cli --version "^2" --locked && \
|
|
CI=true cargo tauri build --target $(TARGET) && \
|
|
mkdir -p artifacts/linux-arm64 && \
|
|
find src-tauri/target/$(TARGET)/release/bundle \
|
|
-name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" | \
|
|
xargs -I{} cp {} artifacts/linux-arm64/ \
|
|
'
|
|
@echo "Artifacts:"
|
|
@ls -lh artifacts/linux-arm64/
|
|
|
|
.PHONY: upload-arm64
|
|
upload-arm64:
|
|
@test -n "$(GOGS_TOKEN)" || (echo "ERROR: set GOGS_TOKEN env var"; exit 1)
|
|
@for f in artifacts/linux-arm64/*; do \
|
|
[ -f "$$f" ] || continue; \
|
|
NAME="linux-arm64-$$(basename $$f)"; \
|
|
echo "Uploading $$NAME..."; \
|
|
GOGS_TOKEN=$(GOGS_TOKEN) # gh release upload $(TAG) "$$f#$$NAME" \
|
|
--repo $(GOGS_REPO) && echo "OK" || echo "FAIL: $$f"; \
|
|
done
|