Skip to content

Commit 0f84fcb

Browse files
committed
feat: make build reproducible and use attestations
1 parent 8842376 commit 0f84fcb

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

.github/workflows/repro.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Reproducible build
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
build:
6+
name: Build and attest
7+
runs-on: ubuntu-latest
8+
permissions:
9+
id-token: write
10+
contents: read
11+
attestations: write
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Checkout submodules
16+
run: git submodule update --init --recursive
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v1
19+
- name: Build taglib.wasm
20+
run: |
21+
rm taglib.wasm
22+
./build/build-docker.sh
23+
- name: Attest build provenance
24+
uses: actions/attest-build-provenance@v3
25+
with:
26+
subject-path: |
27+
taglib.wasm

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This project is a Go library for reading and writing audio metadata tags. By pac
44

55
Current bundled TagLib version is [v2.1.1](https://github.com/taglib/taglib/releases/tag/v2.1.1).
66

7+
To reproduce or verify the bundled binary, see the [attestations](https://github.com/sentriz/go-taglib/attestations/).
8+
79
[![godoc](https://img.shields.io/badge/pkg.go.dev-doc-blue)](http://pkg.go.dev/go.senan.xyz/taglib)
810

911
## Features

build/build-docker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env sh
22

3+
set -e
4+
35
image="go-taglib-build"
46

57
docker build -t "$image" "./build"

build/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env sh
22

3+
set -e
4+
35
wasi_loc="$1"
46
if [ -z "$wasi_loc" ]; then
57
echo "please provide <wasi loc>" >&2

taglib.wasm

5.22 KB
Binary file not shown.

0 commit comments

Comments
 (0)