Skip to content

Commit f199ffb

Browse files
committed
chore(CI): add support for go pipeline to the github actions CI
1 parent 6b4d618 commit f199ffb

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/rust-host.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,24 @@ jobs:
2727
override: true
2828
- uses: cargo-bins/cargo-binstall@main
2929
- uses: extractions/setup-just@v3
30+
- uses: actions/setup-go@v5
31+
with:
32+
go-version: '1.25'
33+
- name: Install TinyGo Compiler
34+
run: |
35+
if [ "${{ runner.arch }}" = "X64" ]; then
36+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.39.0/tinygo_0.39.0_amd64.deb
37+
sudo dpkg -i tinygo_0.39.0_amd64.deb
38+
else
39+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.39.0/tinygo_0.39.0_armhf.deb
40+
sudo dpkg -i tinygo_0.39.0_armhf.deb
41+
fi
42+
export PATH=$PATH:/usr/local/bin
43+
- name: Check TinyGo Compiler
44+
run: tinygo version
45+
- name: Install wkg
46+
run: cargo binstall wkg
47+
3048
- name: Install cargo-component
3149
run: cargo binstall cargo-component@0.21.1
3250
- name: Install wasm-tools

.github/workflows/web-host.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ jobs:
3030
node-version-file: .nvmrc
3131
- uses: cargo-bins/cargo-binstall@main
3232
- uses: extractions/setup-just@v3
33+
- uses: actions/setup-go@v5
34+
with:
35+
go-version: '1.25'
36+
- name: Install TinyGo Compiler
37+
run: |
38+
if [ "${{ runner.arch }}" = "X64" ]; then
39+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.39.0/tinygo_0.39.0_amd64.deb
40+
sudo dpkg -i tinygo_0.39.0_amd64.deb
41+
else
42+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.39.0/tinygo_0.39.0_armhf.deb
43+
sudo dpkg -i tinygo_0.39.0_armhf.deb
44+
fi
45+
export PATH=$PATH:/usr/local/bin
46+
- name: Check TinyGo Compiler
47+
run: tinygo version
48+
- name: Install wkg
49+
run: cargo binstall wkg
3350
- name: Install cargo-component
3451
run: cargo binstall cargo-component@0.21.1
3552
- name: Install wasm-tools

0 commit comments

Comments
 (0)