Skip to content

Readme update

Readme update #31

Workflow file for this run

name: Build app
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
build:
name: Build app ${{ matrix.os }} (${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-24.04
os: linux
arch: amd64
- runner: ubuntu-24.04-arm
os: linux
arch: arm64
- runner: macos-13
os: darwin
arch: amd64
- runner: macos-15
os: darwin
arch: arm64
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Recreate .fk1.txt and .fk2.txt
shell: bash
env:
FK1_TXT_B64: ${{ secrets.FK1_TXT_B64 }}
FK2_TXT_B64: ${{ secrets.FK2_TXT_B64 }}
run: |
set -euo pipefail
mkdir -p app
if [ -n "${FK1_TXT_B64:-}" ]; then printf "%s" "$FK1_TXT_B64" | openssl base64 -d -A > app/.fk1.txt; fi
if [ -n "${FK2_TXT_B64:-}" ]; then printf "%s" "$FK2_TXT_B64" | openssl base64 -d -A > app/.fk2.txt; fi
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true
- name: Show environment
run: |
go version
go env GOOS GOARCH
- name: Build
run: |
mkdir -p dist
GOFLAGS="-trimpath" go build -ldflags="-s -w" -o dist/gradient-engineer.${{ matrix.os }}.${{ matrix.arch }} ./app
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: gradient-engineer.${{ matrix.os }}.${{ matrix.arch }}
path: dist/gradient-engineer.${{ matrix.os }}.${{ matrix.arch }}
if-no-files-found: error
compression-level: 0