Skip to content

Commit e2a77cf

Browse files
author
corda.ilaria@gmail.com
committed
Merge branch 'main' into more-idiomatic-go
2 parents 595ea5d + 35abd9e commit e2a77cf

19 files changed

Lines changed: 698 additions & 283 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @zshipko @nilslice @mhmd-azeez

.github/actions/libextism/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ on: [workflow_call]
22

33
name: libextism
44

5+
inputs:
6+
token:
7+
description: 'A Github PAT'
8+
required: true
9+
510
runs:
611
using: composite
712
steps:
@@ -12,4 +17,4 @@ runs:
1217
- uses: ./.extism-cli/.github/actions/extism-cli
1318
- name: Install
1419
shell: bash
15-
run: sudo extism lib install --version git
20+
run: sudo extism lib install --version git --github-token "${{ inputs.token }}"

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
with:
1616
path: go-pdk
1717
- uses: ./go-pdk/.github/actions/libextism
18-
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
1920
- run: cp go-pdk/go.sum . # Needed to get setup-go to work
2021

2122
- name: Install Go
@@ -27,7 +28,7 @@ jobs:
2728
- name: Install TinyGo
2829
uses: acifani/setup-tinygo@v1.1.0
2930
with:
30-
tinygo-version: 0.31.2
31+
tinygo-version: 0.34.0
3132
binaryen-version: "116"
3233

3334
- name: Compile example

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.PHONY: example
22
example:
3-
tinygo build -o example/tiny_countvowels.wasm -target wasi ./example/countvowels
4-
tinygo build -o example/tiny_http.wasm -target wasi ./example/http
5-
tinygo build -o example/tiny_reactor.wasm -target wasi ./example/reactor
3+
tinygo build -o example/tiny_countvowels.wasm -target wasip1 -buildmode c-shared ./example/countvowels
4+
tinygo build -o example/tiny_http.wasm -target wasip1 -buildmode c-shared ./example/http
5+
tinygo build -o example/tiny_reactor.wasm -target wasip1 -buildmode c-shared ./example/reactor
66

77
GOOS=wasip1 GOARCH=wasm go build -tags std -o example/std_countvowels.wasm ./example/countvowels
88
GOOS=wasip1 GOARCH=wasm go build -tags std -o example/std_http.wasm ./example/http

0 commit comments

Comments
 (0)