File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Reproducible build
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ wasi_sdk_version :
6+ description : " WASI SDK version"
7+ required : true
8+ default : " 27"
9+ type : string
10+ binaryen_version :
11+ description : " Binaryen version"
12+ required : true
13+ default : " 123"
14+ type : string
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ permissions :
19+ id-token : write
20+ contents : read
21+ attestations : write
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+ - name : Setup Golang with cache
26+ uses : magnetikonline/action-golang-cache@v5
27+ with :
28+ go-version-file : go.mod
29+ - name : Install WASI SDK
30+ run : |
31+ curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${{ inputs.wasi_sdk_version }}/wasi-sdk-${{ inputs.wasi_sdk_version }}.0-x86_64-linux.tar.gz -o wasi-sdk.tar.gz
32+ sudo tar -xzf wasi-sdk.tar.gz -C /opt
33+ sudo ln -sf /opt/wasi-sdk-${{ inputs.wasi_sdk_version }}.0-x86_64-linux /opt/wasi-sdk
34+ - name : Install Binaryen
35+ run : |
36+ curl -L https://github.com/WebAssembly/binaryen/releases/download/version_${{ inputs.binaryen_version }}/binaryen-version_${{ inputs.binaryen_version }}-x86_64-linux.tar.gz -o binaryen.tar.gz
37+ tar -xzf binaryen.tar.gz
38+ sudo cp binaryen-version_${{ inputs.binaryen_version }}/bin/* /usr/local/bin/
39+ - name : Checkout submodules
40+ run : git submodule update --init --recursive
41+ - name : Build taglib.wasm
42+ run : go generate .
43+ - name : Attest build provenance
44+ uses : actions/attest-build-provenance@v3
45+ with :
46+ subject-path : |
47+ taglib.wasm
You can’t perform that action at this time.
0 commit comments