Skip to content

v0.8.1

v0.8.1 #8

Workflow file for this run

name: Release Build
on:
release:
types: [published]
workflow_dispatch:
inputs:
upload-to-release:
description: 'Upload binary to latest release'
type: boolean
default: false
permissions:
contents: write
jobs:
build-reproducible:
name: Build Reproducible gf Binary
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build reproducible gf binary
uses: docker/build-push-action@v5
with:
context: .
file: .github/tools/reproducible.Dockerfile
target: exporter
outputs: type=local,dest=./output
build-args: |
GF_BUILD_JOBS=${{ runner.hw.cpu-count }}
- name: Verify binary
run: |
ls -lh output/
file output/gf
ldd output/gf || true
- name: Create tarball
run: |
cd output
tar -czf gf-${{ github.ref_name }}-linux-x86_64.tar.gz gf
sha256sum gf-${{ github.ref_name }}-linux-x86_64.tar.gz > gf-${{ github.ref_name }}-linux-x86_64.tar.gz.sha256
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: gf-linux-x86_64
path: |
output/gf-${{ github.ref_name }}-linux-x86_64.tar.gz
output/gf-${{ github.ref_name }}-linux-x86_64.tar.gz.sha256
compression-level: 0
- name: Upload to Release
if: github.event_name == 'release' || inputs.upload-to-release
uses: softprops/action-gh-release@v1
with:
files: |
output/gf-${{ github.ref_name }}-linux-x86_64.tar.gz
output/gf-${{ github.ref_name }}-linux-x86_64.tar.gz.sha256
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}