Skip to content

Commit 2e7626d

Browse files
authored
Merge pull request #23 from Paca-AI/feature/integrate-tinygo
feat: integrate TinyGo for WASM builds and update plugin-sdk-go dependency to v0.3.3
2 parents 5f33dfb + 9a8fa15 commit 2e7626d

6 files changed

Lines changed: 21 additions & 9 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 github.wasm .
76+
run: tinygo build -target=wasip1 -buildmode=c-shared -o github.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/github.wasm .
41+
tinygo build -target=wasip1 -buildmode=c-shared -o ../release/backend/github.wasm .
3642
3743
- name: Build frontend
3844
working-directory: frontend

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ cd backend
193193
# Run tests
194194
go test -v ./...
195195

196-
# Build WASM binary (Go 1.24+)
197-
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o github.wasm .
196+
# Build WASM binary (requires TinyGo — see https://tinygo.org/getting-started/install/)
197+
tinygo build -target=wasip1 -buildmode=c-shared -o github.wasm .
198198
```
199199

200200
### 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/github
22

33
go 1.24
44

5-
require github.com/Paca-AI/plugin-sdk-go v0.3.1
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.3.1 h1:iwQbGAk1V/7DWmrPXiefKyZtgB68fjFtgJ2Kb5pxxMI=
2-
github.com/Paca-AI/plugin-sdk-go v0.3.1/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.github",
33
"displayName": "GitHub Integration",
44
"description": "Integrates GitHub repositories, pull requests, and branches with Paca projects and tasks.",
5-
"version": "0.3.3",
6-
"minCoreVersion": "v0.12.2",
5+
"version": "0.3.4",
6+
"minCoreVersion": "v0.13.3",
77
"capabilities": ["repository"],
88
"permissions": ["db.read", "db.write"],
99
"backend": {

0 commit comments

Comments
 (0)