Skip to content

CI: install binutils on Alpine, make strip more effective on Linux #1

CI: install binutils on Alpine, make strip more effective on Linux

CI: install binutils on Alpine, make strip more effective on Linux #1

Workflow file for this run

name: Release-Artefacts
on:
push:
tags: "v*"
jobs:
compile:
name: Build Release Artefacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Compile TES for Mac and Linux, arm64 and amd64
env:
GOFLAGS: |
"-ldflags=-s -w" -tags=nomsgpack,embed_pdfium
run: |
mkdir dist
for GOOS in linux darwin; do
for GOARCH in amd64 arm64; do
exe="dist/tes-${GOOS}-${GOARCH}"
GOARCH=$GOARCH GOOS=$GOOS pkg/pdflibwrappers/pdfium_purego/download-pdfium.sh
GOARCH=$GOARCH GOOS=$GOOS go build -o "${exe}" && \
file "${exe}"
gzip --keep "${exe}"
done
done
ls -lah
- name: Publish Release
uses: ncipollo/release-action@v1
with:
draft: true
omitBody: true
artifacts: dist/*