v0.8.3 #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 gdbf 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 gdbf binary | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: .github/tools/reproducible.Dockerfile | |
| target: exporter | |
| outputs: type=local,dest=./output | |
| build-args: | | |
| GDBF_BUILD_JOBS=${{ runner.hw.cpu-count }} | |
| - name: Verify binary | |
| run: | | |
| ls -lh output/ | |
| file output/gdbf | |
| ldd output/gdbf || true | |
| - name: Create tarball | |
| run: | | |
| cd output | |
| tar -czf gdbf-${{ github.ref_name }}-linux-x86_64.tar.gz gdbf | |
| sha256sum gdbf-${{ github.ref_name }}-linux-x86_64.tar.gz > gdbf-${{ github.ref_name }}-linux-x86_64.tar.gz.sha256 | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gdbf-linux-x86_64 | |
| path: | | |
| output/gdbf-${{ github.ref_name }}-linux-x86_64.tar.gz | |
| output/gdbf-${{ 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/gdbf-${{ github.ref_name }}-linux-x86_64.tar.gz | |
| output/gdbf-${{ github.ref_name }}-linux-x86_64.tar.gz.sha256 | |
| tag_name: ${{ github.ref_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |