Skip to content

Commit 2e55b61

Browse files
authored
Merge pull request #11 from Paca-AI/feature/integrate-tinygo
feat: integrate TinyGo for WASM builds and update plugin-sdk-go dependency to v0.3.3
2 parents 5508b7c + ea6408a commit 2e55b61

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/backend-pr-ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ jobs:
6666
go-version: ${{ env.GO_VERSION }}
6767
cache-dependency-path: backend/go.sum
6868

69+
- name: Setup TinyGo
70+
run: |
71+
set -euo pipefail
72+
curl -sL -o /tmp/tinygo.deb https://github.com/tinygo-org/tinygo/releases/download/v0.41.1/tinygo_0.41.1_amd64.deb
73+
sudo dpkg -i /tmp/tinygo.deb
74+
6975
- name: Build WASM
70-
run: GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o webhook.wasm .
76+
run: tinygo build -target=wasip1 -buildmode=c-shared -o webhook.wasm .
7177

7278
test:
7379
name: Tests

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
with:
2323
go-version: "1.24"
2424

25+
- name: Setup TinyGo
26+
run: |
27+
set -euo pipefail
28+
curl -sL -o /tmp/tinygo.deb https://github.com/tinygo-org/tinygo/releases/download/v0.41.1/tinygo_0.41.1_amd64.deb
29+
sudo dpkg -i /tmp/tinygo.deb
30+
2531
- name: Setup Bun
2632
uses: oven-sh/setup-bun@v2
2733
with:
@@ -32,7 +38,7 @@ jobs:
3238
run: |
3339
set -euo pipefail
3440
mkdir -p ../release/backend
35-
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o ../release/backend/webhook.wasm .
41+
tinygo build -target=wasip1 -buildmode=c-shared -o ../release/backend/webhook.wasm .
3642
3743
- name: Build frontend
3844
working-directory: frontend

backend/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/Paca-AI/first-party/webhook
22

33
go 1.24
44

5-
require github.com/Paca-AI/plugin-sdk-go v0.2.0
5+
require github.com/Paca-AI/plugin-sdk-go v0.3.3

backend/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/Paca-AI/plugin-sdk-go v0.2.0 h1:Fur6p+OQoC5imq7qmvaQtJnZ3SRVRskx8KcT/rqFHj4=
2-
github.com/Paca-AI/plugin-sdk-go v0.2.0/go.mod h1:5WeC6cSEf2wM1ovICZbDaVky9oi5id/Qpdfc5LDAQnw=
1+
github.com/Paca-AI/plugin-sdk-go v0.3.3 h1:nW2DwJatraYfxo4MpwNkfQEp+9jmj7QHaU16bOXzBpM=
2+
github.com/Paca-AI/plugin-sdk-go v0.3.3/go.mod h1:5WeC6cSEf2wM1ovICZbDaVky9oi5id/Qpdfc5LDAQnw=

plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"id": "com.paca.webhook",
33
"displayName": "Webhooks",
44
"description": "Sends HTTP webhooks to a URL of your choice when task activity happens in a project.",
5-
"version": "0.1.7",
6-
"minCoreVersion": "v0.11.2",
5+
"version": "0.1.8",
6+
"minCoreVersion": "v0.13.3",
77
"permissions": ["db.read", "db.write", "events.subscribe"],
88
"backend": {
99
"allowedConfigKeys": ["ENCRYPTION_KEY", "PUBLIC_URL"],

0 commit comments

Comments
 (0)