Skip to content

preopen PWD for wazero runtime (#578) #20

preopen PWD for wazero runtime (#578)

preopen PWD for wazero runtime (#578) #20

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
jobs:
build:
name: Build and release
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Check out
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Run build script
env:
PLATFORMS: "darwin/amd64,darwin/arm64,windows/amd64,windows/arm64,linux/amd64,linux/arm64,freebsd/amd64,freebsd/arm64"
run: |
bash ./build.sh
- name: Generate hashes
run: |
cd ./build
for f in $(find . -type f); do
sha256sum $f | sudo tee -a hashes.txt
done
- name: Upload
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./build/yomo-amd64-darwin.zip
./build/yomo-arm64-darwin.zip
./build/yomo-amd64-windows.zip
./build/yomo-arm64-windows.zip
./build/yomo-amd64-linux.zip
./build/yomo-arm64-linux.zip
./build/yomo-amd64-freebsd.zip
./build/yomo-arm64-freebsd.zip
./build/hashes.txt