Skip to content

feat: Sign with data (#35) #82

feat: Sign with data (#35)

feat: Sign with data (#35) #82

Workflow file for this run

name: Build WASM
on:
workflow_dispatch:
inputs:
version:
description: Version Overwrite
required: false
push:
tags:
- "v*"
pull_request:
env:
VERSION: ${{ github.event.inputs.version || (startsWith(github.ref, 'refs/tags/') && github.ref || '') }}
jobs:
binding:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '^1.21'
- name: Install TinyGo
run: |
wget https://github.com/tinygo-org/tinygo/releases/download/v0.28.1/tinygo_0.28.1_amd64.deb
sudo dpkg -i tinygo_0.28.1_amd64.deb
- name: Build
run: make wasm
- name: Compress
run: tar -czvf output.tar.gz -C output/wasm .
- if: ${{ env.VERSION!='' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libopenpgp_bridge_wasm_$tag.tar.gz
file: output.tar.gz
tag: ${{ env.VERSION }}
overwrite: true
- if: ${{ env.VERSION=='' }}
uses: actions/upload-artifact@v3
with:
name: libopenpgp_bridge_wasm
path: output.tar.gz