Null-DRM-Official/.forgejo/workflows/release.yml
404errordeveloper 84ae0f6994 Disable setup-go cache in release workflow.
Forgejo has no Actions cache server; cache-save hung after assets uploaded.
2026-10-08 20:20:36 +02:00

69 lines
2.4 KiB
YAML

# Build multi-platform drm binaries + Android MITM and attach them to a Forgejo release.
#
# Trigger: push a version tag
# git tag v1.2.3 && git push origin v1.2.3
#
# Requires a Forgejo Actions runner registered against this instance
# (label must match runs-on below — default act_runner often uses "docker").
# See deploy/forgejo/README.md § Actions / releases.
name: release
on:
push:
tags:
- "v*"
jobs:
build-and-upload:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
# apps/proxy/device requires the newer toolchain; apps/cli is fine with it.
go-version-file: apps/proxy/device/go.mod
# Forgejo has no Actions cache server; setup-go cache-save hangs without one.
cache: false
- name: Build release artifacts
run: |
chmod +x scripts/build-release.sh
./scripts/build-release.sh "${{ github.ref_name }}"
ls -la dist/release
- name: Upload to Forgejo release
uses: https://data.forgejo.org/actions/forgejo-release@v2.7.2
with:
direction: upload
# Defaults to this runner's Forgejo URL when omitted.
url: https://git.nulldrm.com
repo: ${{ github.repository }}
# Built-in job token (write:repository). Override with a PAT secret if needed.
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
sha: ${{ github.sha }}
release-dir: dist/release
title: ${{ github.ref_name }}
override: true
release-notes: |
Multi-platform `drm` host CLI + on-device MITM (`proxy-android-arm64`).
| Asset | Platform |
|---|---|
| `drm-windows-amd64.exe` | Windows x86_64 |
| `drm-windows-arm64.exe` | Windows ARM64 |
| `drm-linux-amd64` | Linux x86_64 |
| `drm-linux-arm64` | Linux ARM64 |
| `drm-darwin-amd64` | macOS Intel |
| `drm-darwin-arm64` | macOS Apple Silicon |
| `proxy-android-arm64` | On-device MITM (push with `drm proxy`) |
| `SHA256SUMS.txt` | Checksums |
Built with `CGO_ENABLED=0` via `scripts/build-release.sh`.
Phone capture still needs Magisk + `drm proxy install-ca --reinject`.